callcc1 ( quot -- obj )
Factor handbook » The language » Continuations

Prev:callcc0 ( quot -- )
Next:continue ( continuation -- * )


Vocabulary
continuations

Inputs
quota quotation with stack effect ( continuation -- )


Outputs
objan object provided when resuming the continuation


Word description
Applies the quotation to the current continuation, which is reified from the point immediately after which the caller returns. The continue-with word resumes the continuation, passing a value back to the original execution context.

See also
callcc0, continue, continue-with, ifcc

Definition