continuations
Continuations usage in play framework example needed
Can you give me some links with good examples how to use continuations in play framework?(beside source of pla开发者_如何学Cy framework, their \'samples-and-tests\' and on-site doc, already were there[详细]
2023-04-09 16:24 分类:问答Re-execute TRY block after the exception is handled
Starting from this answer: Scala continuation and exception handling I would like to know if there is a way to re-execute the ENTIRE try block (or ctry block in the example code) after the exception[详细]
2023-04-03 09:32 分类:问答Converting Scala @suspendable Method into a Future
suppose I have a sleep function: def sleep(delay:Int) : Unit @suspendable = { .... } is it possible to have a function future that creates an async version of the sleep function that can be awaited[详细]
2023-04-02 09:45 分类:问答Understanding continuations in JavaScript
I\'m trying to solve the last exercise of this JavaScript Closure Tutorial which takes about Continuation Passing.[详细]
2023-03-26 12:28 分类:问答Continuations: can I serialize the continuation in an F# async workflow or C# async function?
开发者_JAVA百科I want a serializable continuation so I can pickle async workflows to disk while waiting for new events. When the async workflow is waiting on a let!, it would be saved away along with[详细]
2023-03-23 17:18 分类:问答Escaping from the IO monad inside the Continuation monad
A confusing title for a confusing question! I understand a) monads, b) the IO monad, c) the Cont monad (Control.Monad.Cont), and d) the ContT continuation transformer monad. (And I vaguely understand[详细]
2023-03-18 04:39 分类:问答CPS compiler for coroutine implementation
I used to work on IronLua in my spare time. Lexing and parsing is currently done. I kind of stopped working on it out of frustration since implementing Lua coroutines in .NET without resorting to dirt[详细]
2023-03-13 20:39 分类:问答Does it matter where a shift stands in a reset block?
Suppose, there is a reset block with a single shift: val r = reset { // do smth. 1 shift {...} // do smth. 2[详细]
2023-03-09 14:44 分类:问答How is a reset with two shifts reified in Scala?
I understand from this blog post how a single shift within a reset is reified. reset { 1 + shift {k:Int => Int => k(5)} + 1}[详细]
2023-03-09 03:54 分类:问答Scala continuation and exception handling
Suppose, I would like to 开发者_开发百科catch an exception, fix the problem caused the exception and return to the same execution point where the exception occurred to continue.[详细]
2023-03-08 22:53 分类:问答