All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.async.internal.ScalaConcurrentAsync.scala Maven / Gradle / Ivy

Go to download

An asynchronous programming facility for Scala that offers a direct API for working with Futures.

There is a newer version: 0.9.7
Show newest version
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)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy