3 ms·
This isn’t “real” call/cc; the “continuation” here must be suspended and then resumed exactly once. It’s intended for writing async wrappers for callback-based
by slavapestov 6y ago
This isn’t “real” call/cc; the “continuation” here must be suspended and then resumed exactly once. It’s intended for writing async wrappers for callback-based APIs that take a completion function.
- sanxiyn 6y agoI saw the term "one-shot continuation" used to refer to this.
- slavapestov 6y agoYeah. This change doesn’t really introduce a new capability per se; it just ties together some of the existing concurrency primitives that other folks are working on in a new way.
- dang 6y agoOk, we've changed the title from "Swift to Add call/cc".