Name
Continuation — Continuation class
Synopsis
Allows a
return to (continuation of) execution from a certain place in the
code. Created using the built-in function callcc
.
See callcc
in the previous section.
Instance Method
c
.call([
arg...
])
Continues execution from the end of the
callcc
block that created the Continuation.callcc
returnsarg
...
, ornil
if no arguments are specified.
Get Ruby in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.