Tutorial by Topics: continuations

Continuation passing style is a form of control flow that involves passing to functions the rest of the computation as a "continuation" argument. The function in question later invokes that continuation to continue program execution. One way to think of a continuation is as a closure. The Scala continuations library brings delimited continuations in the form of the primitives shift/reset to the language.

continuations library: https://github.com/scala/scala-continuations

Page 1 of 1