continuations vocabulary
Factor handbook ยป Vocabulary index


Documentation
Continuations

Metadata
Tags:reflection
Authors:Slava Pestov


Words

Tuple classes
ClassSuperclassSlots
attempt-all-error tuple
condition tupleerror restarts continuation
continuation tupledata call retain name catch
restart tuplename obj continuation


Singleton classes
no-op-restart


Generic words
WordStack effect
compute-restarts( error -- seq )
error-in-thread( error thread -- * )


Symbol words
callback-error-hook
error
error-continuation
error-thread
original-error
restarts
return-continuation
thread-error-hook


Ordinary words
WordStack effect
<condition>( error restarts continuation -- condition )
<continuation>( data call retain name catch -- continuation )
<restart>( name obj continuation -- restart )
attempt-all( ... seq quot: ( ... elt -- ... obj ) -- ... obj )
attempt-all-error( -- * )
callcc0( quot -- )
callcc1( quot -- obj )
cleanup( try cleanup-always cleanup-error -- )
continue( continuation -- * )
continue-restart( restart -- * )
continue-with( obj continuation -- * )
current-continuation( -- continuation )
finally( try cleanup-always -- )
ifcc( capture restore -- obj )
ignore-error( ... quot: ( ... -- ... ) check: ( error -- ? ) -- ... )
ignore-error/f( ... quot: ( ... -- ... x ) check: ( error -- ? ) -- ... x/f )
ignore-errors( ... quot: ( ... -- ... ) -- ... )
in-callback?( -- ? )
recover( ..a try: ( ..a -- ..b ) recovery: ( ..a error -- ..b ) -- ..b )
rethrow( error -- * )
rethrow-restarts( error restarts -- restart )
return( -- * )
throw-continue( error -- )
throw-restarts( error restarts -- restart )
with-datastack( stack quot -- new-stack )
with-return( quot -- )


Class predicate words
WordStack effect
attempt-all-error?( object -- ? )
condition?( object -- ? )
continuation?( object -- ? )
no-op-restart?( object -- ? )
restart?( object -- ? )


Files


Metadata files