Registry / async / dispatch

dispatch

JSON →
library0.2.0rscratesunverified

Rust wrapper for Apple's Grand Central Dispatch.

# Cargo.toml [dependencies] dispatch = "0.2.0"
INSTALL
IMPORT
SIG · DISPATCH
D
dispatch
asyncrustv0.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Queue
use dispatch::Queue;

Dispatches a closure to the main GCD queue.

use dispatch::Queue; fn main() { let queue = Queue::main(); queue.exec_async(|| println!("Hello from GCD")); }
Debug
Known issues
gotchaOnly works on Apple platforms (macOS, iOS, etc.)
fix
Use conditional compilation with #[cfg(target_os = "macos")] or similar
affects: >=0.1.0
Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
45 hits · last 30 days
node
38
Amazon
1
OpenAI (training)
1
Resources
dispatch — cargo add dispatch · libregistry