SuspendSupport

gears.async.SuspendSupport

Support for suspension capabilities through a delimited continuation interface.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Types

type Label[R]

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

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

Attributes

type Suspension[-T, +R] <: Suspension[T, R]

The provided suspension type.

The provided suspension type.

Attributes

Value members

Abstract 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

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