switch-resume

Crates.ioswitch-resume
lib.rsswitch-resume
version0.1.3
sourcesrc
created_at2023-08-30 23:28:23.554302
updated_at2023-10-18 14:31:28.03767
descriptionDelimited async continuations
homepage
repositoryhttps://github.com/kuviman/switch-resume
max_upload_size
id959339
size40,103
Vitaliy (kuviman)

documentation

README

switch-resume

This crates provides functionality for running switchable tasks (futures).

Switching is a control flow mechanism that pauses normal execution of current task, captures current continuation and passes it as an argument to the provided async fn. The task then proceeds by evaluating that fn, instead of resuming normally.

In order to resume normal execution, the passed resumption object can be called explicitly.

This is an implementation of delimited continuations in Rust using async that works on stable.

Commit count: 33

cargo fmt