AsyncSupport

gears.async.AsyncSupport
See theAsyncSupport companion object

Extends SuspendSupport with "asynchronous" boundary/resume functions, in the presence of a Scheduler

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Types

Inherited types

type Label[R]

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

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

Attributes

Inherited from:
SuspendSupport
type Suspension[-T, +R] <: Suspension[T, R]

The provided suspension type.

The provided suspension type.

Attributes

Inherited from:
SuspendSupport

Value members

Inherited methods

def boundary[R](body: (Label[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

Inherited from:
SuspendSupport
def suspend[T, R](body: (Suspension[T, R]) => R)(using Label[R]): T

Should return immediately if resume is called from within body

Should return immediately if resume is called from within body

Attributes

Inherited from:
SuspendSupport