https://github.com/raftario/wae
An async executor based on the Win32 thread pool API
https://github.com/raftario/wae
async executor threadpool win32 windows
Last synced: 11 months ago
JSON representation
An async executor based on the Win32 thread pool API
- Host: GitHub
- URL: https://github.com/raftario/wae
- Owner: raftario
- License: apache-2.0
- Created: 2021-01-25T02:57:41.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-23T17:15:49.000Z (about 5 years ago)
- Last Synced: 2025-04-10T12:38:53.049Z (11 months ago)
- Topics: async, executor, threadpool, win32, windows
- Language: Rust
- Homepage:
- Size: 1.1 MB
- Stars: 13
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wae
An async executor based on the Win32 thread pool API
```rust
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;
}
```