Skip to content

Rust bindings and wrappers for the Grand Central Dispatch (GCD)

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

marysaka/dispatch2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dispatch2

Allows interaction with the Apple Dispatch library in a safe and unsafe way.

Usage

To use dispatch2, add this to your Cargo.toml:

[dependencies]
dispatch2 = "0.1.0"

Example

use dispatch2::{Queue, QueueAttribute};

fn main() {
    let queue = Queue::new("example_queue", QueueAttribute::Serial);
    queue.exec_async(|| println!("Hello"));
    queue.exec_sync(|| println!("World"));
}

License

dispatch2 is distributed under the terms of either the MIT license or the Apache License (Version 2.0), at the user's choice.

See LICENSE-APACHE and LICENSE-MIT.

About

Rust bindings and wrappers for the Grand Central Dispatch (GCD)

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages