1
0
Fork
You've already forked future_handles
0
A rust library to complete futures via a remote handle: https://crates.io/crates/future_handles
  • Rust 100%
Find a file
2022年03月21日 12:52:27 +01:00
src Move sync test utils 2022年03月21日 12:52:27 +01:00
.gitignore Filled in Cargo.toml 2022年02月05日 23:55:10 +01:00
Cargo.toml Change feature from sync to spin 2022年03月21日 12:47:58 +01:00
LICENSE Add LGPL 3.0-only as LICENSE 2022年02月06日 00:01:12 +01:00
README.md Add README.md 2022年02月05日 23:51:14 +01:00
rust-toolchain.toml Switching to nightly 2022年02月08日 14:04:55 +01:00

Future Handles

A rust library to complete futures via a remote handle.

asyncfn func()-> Option<u32>{let(future,handle)=unsync::create();func_with_callback(||{handle.complete(1);});matchfuture.await{// The callback was invoked and the result set via the handle.
Ok(res)=>Some(res),// The callback was never invoked, but the handle has been dropped.
Err(_)=>None}}