Skip to content
/ wae Public

An async executor based on the Win32 thread pool API

License

Notifications You must be signed in to change notification settings

raftario/wae

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages