Object

gopher.goasync

GoAsync

Related Doc: package goasync

Permalink

object GoAsync

async arround go.

Basicly go is

  1. translate await-like exressions inside inline functions to calls of appropriative async functions. (or show error if not found). x.foreach{ x => p; await(x); .. } become await( transform-defer( x.foreachAsync{ x => async(p; await(x); ..) }) ) (note, that channel.read macroses are expanded to await-s on this point)

2. transform defer calls if defer statement is found inside go: asnyc{ p .. defer(x) .. } become (reallity is a little complext, here is just idea) { val d = new Defers(); async{ p .. d.defer(x) .. }.onComplete(d.tryProcess) }

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GoAsync
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def applyAsync[T](c: Context)(nbody: scala.reflect.macros.blackbox.Context.Tree)(ec: scala.reflect.macros.blackbox.Context.Expr[ExecutionContext])(implicit arg0: scala.reflect.macros.blackbox.Context.WeakTypeTag[T]): scala.reflect.macros.blackbox.Context.Tree

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def containsDefer[T](c: Context)(body: scala.reflect.macros.blackbox.Context.Expr[T])(implicit arg0: scala.reflect.macros.blackbox.Context.WeakTypeTag[T]): Boolean

    Permalink
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def findAwait(c: Context)(body: scala.reflect.macros.blackbox.Context.Tree): Boolean

    Permalink
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def goImpl[T](c: Context)(body: scala.reflect.macros.blackbox.Context.Expr[T])(ec: scala.reflect.macros.blackbox.Context.Expr[ExecutionContext])(implicit arg0: scala.reflect.macros.blackbox.Context.WeakTypeTag[T]): scala.reflect.macros.blackbox.Context.Expr[Future[T]]

    Permalink
  14. def goScopeImpl[T](c: Context)(body: scala.reflect.macros.blackbox.Context.Expr[T])(implicit arg0: scala.reflect.macros.blackbox.Context.WeakTypeTag[T]): scala.reflect.macros.blackbox.Context.Expr[T]

    Permalink
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. def transformAsyncBody[T](c: Context)(body: scala.reflect.macros.blackbox.Context.Tree)(implicit arg0: scala.reflect.macros.blackbox.Context.WeakTypeTag[T]): scala.reflect.macros.blackbox.Context.Tree

    Permalink
  23. def transformDefer[T](c: Context)(body: scala.reflect.macros.blackbox.Context.Tree)(implicit arg0: scala.reflect.macros.blackbox.Context.WeakTypeTag[T]): scala.reflect.macros.blackbox.Context.Tree

    Permalink
  24. macro def transformDeferMacro[T](body: Future[T]): Future[T]

    Permalink
  25. def transformDeferMacroImpl[T](c: Context)(body: scala.reflect.macros.blackbox.Context.Expr[Future[T]])(implicit arg0: scala.reflect.macros.blackbox.Context.WeakTypeTag[T]): scala.reflect.macros.blackbox.Context.Expr[Future[T]]

    Permalink
  26. def transformInlineHofCall1(c: Context)(fun: scala.reflect.macros.blackbox.Context.Tree, param: scala.reflect.macros.blackbox.Context.Tree, body: scala.reflect.macros.blackbox.Context.Tree, implicitParams: List[scala.reflect.macros.blackbox.Context.Tree]): scala.reflect.macros.blackbox.Context.Tree

    Permalink
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped