aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/scala/async/internal/ScalaConcurrentAsync.scala
blob: 4e1a0afdb9672eb8b3395c09b7618163618fcd5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package scala
package async
package internal

import scala.language.experimental.macros
import scala.reflect.macros.Context
import scala.concurrent.Future

object ScalaConcurrentAsync extends AsyncBase {
  type FS = ScalaConcurrentFutureSystem.type
  val futureSystem: FS = ScalaConcurrentFutureSystem

  override def asyncImpl[T: c.WeakTypeTag](c: Context)
                                          (body: c.Expr[T])
                                          (execContext: c.Expr[futureSystem.ExecContext]): c.Expr[Future[T]] = {
    super.asyncImpl[T](c)(body)(execContext)
  }
}