DefaultSupport

gears.async.default.DefaultSupport

Attributes

Graph
Supertypes
trait AsyncSupport
trait Scheduler
trait ExecutionContext
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited types

type Label[R] = BoundaryLabel[R]

A marker for the "limit" of "delimited continuation".

A marker for the "limit" of "delimited continuation".

Attributes

Inherited from:
NativeSuspend

Attributes

Inherited from:
SuspendExecutorWithSleep
type Suspension[T, R] = NativeContinuation[T, R]

The provided suspension type.

The provided suspension type.

Attributes

Inherited from:
NativeSuspend

Value members

Inherited methods

override def boundary[R](body: (BoundaryLabel[R]) ?=> R): R

Set the suspension marker as the body's caller, and execute body.

Set the suspension marker as the body's caller, and execute body.

Attributes

Definition Classes
Inherited from:
NativeSuspend
override def execute(body: Runnable): Unit

Attributes

Definition Classes
ExecutorWithSleepThread -> Scheduler -> ExecutionContext
Inherited from:
ExecutorWithSleepThread
override def reportFailure(cause: Throwable): Unit

Attributes

Definition Classes
ExecutorWithSleepThread -> ExecutionContext
Inherited from:
ExecutorWithSleepThread
override def schedule(delay: FiniteDuration, body: Runnable): Cancellable

Attributes

Definition Classes
Inherited from:
ExecutorWithSleepThread
override def sleep(millis: Long)(using Async): Unit

Suspends the current Async context for at least millis milliseconds.

Suspends the current Async context for at least millis milliseconds.

Attributes

Definition Classes
Inherited from:
SuspendExecutorWithSleep
override def suspend[T, R](body: (NativeContinuation[T, R]) => R)(using BoundaryLabel[R]): T

Should return immediately if resume is called from within body

Should return immediately if resume is called from within body

Attributes

Definition Classes
Inherited from:
NativeSuspend

Deprecated and Inherited methods

def prepare(): ExecutionContext

Attributes

Deprecated
[Since version 2.12.0] preparation of ExecutionContexts will be removed
Inherited from:
ExecutionContext

Inherited fields

val exec: ExecutionContext

Attributes

Inherited from:
ExecutorWithSleepThread
val sleeperThread: Thread

Attributes

Inherited from:
ExecutorWithSleepThread