x-lang

← Index

x/sys/cont

Continuations whose captured frames’ roots the collector marks while they wait.

The engine’s call/cc stays bare; this is the door for a continuation that waits – a generator, a coroutine.

Class Cont

A continuation the collector can see into: call/cc with the captured frames’ roots marked while it waits.

(Cont capture f) replaces (call/cc f) wherever a continuation outlives the frames that captured it – a generator, a coroutine.

%callcc

Static field: data held by Cont itself, not by its instances.

%tree-mark!

Static field: data held by Cont itself, not by its instances.

%heap-off

Static field: data held by Cont itself, not by its instances.

%type-off

Static field: data held by Cont itself, not by its instances.

%data-off

Static field: data held by Cont itself, not by its instances.

%type-cell

The marker type, made on the first capture

Static field: data held by Cont itself, not by its instances.

(Cont capture f)

call/cc, with the captured frames’ roots marked while the continuation waits.

Parameters:

Returns: ANY — What f answers, or the value the continuation was invoked with

(Cont %marker k)

(Cont %state k)

(Cont %type)

(Cont %mark m flags)