Support for suspension capabilities through a delimited continuation interface.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Type members
Classlikes
The delimited continuation suspension interface. Represents a suspended computation asking for a value of type T to continue (and eventually returning a value of type R, which is the result that the whole delimited continuation will eventually produce).
The delimited continuation suspension interface. Represents a suspended computation asking for a value of type T to continue (and eventually returning a value of type R, which is the result that the whole delimited continuation will eventually produce).
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Types
A marker for the "limit" of "delimited continuation".
A marker for the "limit" of "delimited continuation".
Attributes
The provided suspension type.
The provided suspension type.
Attributes
Value members
Abstract methods
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
- Returns
-
the result of the boundary. Note that this is platform-specific. Ideally we could return just
R, however, this either implies platform support for delimited continuations (Scala Native), or blocking threads (JVM). On top of JS/WASM engines, blocking can only happen in the context of ajs.asyncscope, therefore, we have to work withjs.Promise.
Should return immediately if resume is called from within body
Should return immediately if resume is called from within body