blob: 4e8ec80b7b0084c3c7bd396c60ec521e8d7a2961 (
plain) (
tree)
|
|
/*
* Copyright (C) 2012 Typesafe Inc. <http://www.typesafe.com>
*/
package scala.async
package continuations
import scala.language.experimental.macros
import scala.reflect.macros.Context
import scala.util.continuations._
/* Specializes `AsyncBaseWithCPSFallback` to always fall back to CPS, yielding a purely CPS-based
* implementation of async/await.
*/
trait CPSBasedAsyncBase extends AsyncBaseWithCPSFallback {
override def asyncImpl[T: c.WeakTypeTag](c: Context)(body: c.Expr[T]): c.Expr[futureSystem.Fut[T]] =
super.cpsBasedAsyncImpl[T](c)(body)
}
|