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

Concise view

Value members

Concrete methods

inline def flatMap[B](inline f: A => Sync[Ctx, B]): Sync[Ctx, B]
Extension method from delay
inline def map[B](inline f: A => B): Sync[Ctx, B]
Extension method from delay
inline def run(using inline ctx: Ctx): A
Extension method from delay

Executes the Sync given a Ctx.

Executes the Sync given a Ctx.

Attributes

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