Sync

de.rmgk.delay$.Sync
class Sync[-Ctx, +A](val runInContext: Ctx => A) extends Async[Ctx, A]

Description of a computation that returns an A immediately without blocking. This could be seen as a () => A but with an additional Ctx to store context information.

Attributes

Graph
Supertypes
class Async[Ctx, A]
class Object
trait Matchable
class Any

Members list

Value members

Inherited methods

def bind: A

Access the value inside an Async block.

Access the value inside an Async block.

Attributes

Inherited from:
Async

Concrete fields

val runInContext: Ctx => A

Inherited fields

val handleInCtx: Ctx => Callback[A] => Unit

Attributes

Inherited from:
Async