resume-to transfers control to the nearest enclosing
resumable handler that matches the resumption
value.
Syntax
(resume-to ⟨resumption-expr⟩)
Semantics
- The argument must be a known resumption value, usually from
define-resumption. - Control leaves the current computation and enters the matching
resumablebranch. - Like
throw,resume-tois not currently polymorphic without an explicit type.
Example
(define (serve-raw egg)
(resume-to (ServeRaw egg)))