3 releases (breaking)
| 0.3.0 | Apr 19, 2025 |
|---|---|
| 0.2.0 | Jan 23, 2025 |
| 0.1.0 | Oct 1, 2022 |
#109 in macOS and iOS APIs
2,534,548 downloads per month
Used in 5,675 crates
(73 directly)
1MB
19K
SLoC
Apple's Dispatch (Grand Central Dispatch)
This crate provides a safe and sound interface to Apple's Grand Central dispatch.
See Apple's documentation and the source code for libdispatch for more details.
Example
use dispatch2::{DispatchQueue, DispatchQueueAttr};
let queue = DispatchQueue::new("example_queue", DispatchQueueAttr::SERIAL);
queue.exec_async(|| println!("Hello"));
queue.exec_sync(|| println!("World"));
dispatch2
Rust bindings to Apple's Grand Central Dispatch.
This README is kept intentionally small to consolidate the documentation, see the Rust docs for more details on this crate.
This crate is part of the objc2 project,
see that for related crates.