Control
Access to delimited continuation.
Used from custom implementations of effect Interpreter.
Type parameters
- F
-
part of continuation's answer
- Q
-
part of continuation's answer
- S
-
local state
- V
-
effect set
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Type members
Types
Value members
Concrete methods
Unwind the stack until the end of the effect's scope.
Unwind the stack until the end of the effect's scope.
Can be thought of as "invoking the continuation zero times", as in: capture(_ => value)
.
However, abort(value)
also invokes finalization clauses during stack unwinding.
Attributes
Captures the continuation.
Captures the continuation.
Unwinds the stack up to the end of the effect's scope. The unwound part of the stack is reified as a Continuation object.
Attributes
Changes scope of the effect.
Changes scope of the effect.
The scope of the effect is defined as either:
- The body of the innermost
delimit
call. - The the whole scope of the effect's handler, if none of the above is found.
Attributes
Like delimitPut, but modifies the local state, instead of replacing it.