chickadee » suspension » continuation-suspend

continuation-suspend STOREprocedure

Captures the current continuation up to the point of the innermost enclosing with-limited-continuation form and invokes the 1-argument procedure STORE with the serialized representation (a string) of the continuation. The execution context will be exited and the enclosing with-limited-continuation form will return any results returned by STORE.

The effect of invoking continuation-suspend outside of the dynamic context of a with-limited-continuation is undefined.

Returning from STORE normally will result in undefined behaviour. Instead either terminate the current thread or process or use some form of non-local exit.