windows-future (0.100.0+paring.1)

Published 2026-10-14 03:21:30 +09:00 by paring

Installation

[registries.forgejo]
index = "sparse+" # Sparse index
# index = "" # Git

[net]
git-fetch-with-cli = true
cargo add windows-future@0.100.0+paring.1 --registry forgejo

About this package

Windows async types

windows-future

The windows-future crate adapts WinRT asynchronous operations to Rust futures.

Start by adding the following to your Cargo.toml file:

[dependencies.windows-future]
version = "0.100"

Use the Windows async types as needed:

use windows_future::*;

// This result will be available immediately.
let ready = IAsyncOperation::ready(Ok(123));
assert_eq!(ready.join().unwrap(), 123);

let ready = IAsyncOperation::spawn(|| {
    // Some lengthy operation goes here...
    Ok(456)
});

assert_eq!(ready.join().unwrap(), 456);

Dependencies

ID Version
windows-core ^0.100.0
windows-link ^0.100.0
windows-threading ^0.100.0
Details
Cargo
2026-10-14 03:21:30 +09:00
21
2026-11-15 19:56:41 +09:00
MIT OR Apache-2.0
16 KiB
Assets (1)
Versions (1) View all
0.100.0+paring.1 2026-10-14