Skip to content
/ wae Public
forked from raftario/wae

An async executor based on the Win32 thread pool API

License

Notifications You must be signed in to change notification settings

smj389/wae

This branch is up to date with raftario/wae:main.

Repository files navigation

wae

An async executor based on the Win32 thread pool API

use futures::channel::oneshot;

#[wae::main]
async fn main() {
    let (tx, rx) = oneshot::channel();

    let hello = wae::spawn(async move {
        let msg = rx.await.unwrap();
        println!("{}", msg);
    });

    tx.send("Hello from wae !").unwrap();
    hello.await;
}

About

An async executor based on the Win32 thread pool API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%