NativeSuspend

gears.async.native.NativeSuspend

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Types

type Label[R] = BoundaryLabel[R]

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

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

Attributes

type Suspension[T, R] = NativeContinuation[T, R]

The provided suspension type.

The provided suspension type.

Attributes

Value members

Concrete 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
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