4 ms·
> I just want you to either do what I asked you to do or fail gracefully, and then I can decide whether we crash or not. Then you're looking for resumable cond
by zozbot234 3y ago
> I just want you to either do what I asked you to do or fail gracefully, and then I can decide whether we crash or not.
Then you're looking for resumable conditions, which just so happen to be effectively isomorphic to async-await. (The called function is effectively a piece of async code which 'awaits' upon a failure condition, after which it can either be resumed or canceled as with an ordinary panic.)