scala.async.internal.ScalaConcurrentAsync.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala-async_2.11 Show documentation
Show all versions of scala-async_2.11 Show documentation
An asynchronous programming facility for Scala that offers a direct API for working with Futures.
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)
}
}