[package] name = "suspend" version = "0.1.3" authors = ["Andrew Whitehead "] edition = "2018" description = "A common mechanism for suspending a thread or a Future until notified" license = "MIT/Apache-2.0" readme = "README.md" repository = "https://github.com/andrewwhitehead/async-resource-rs/" categories = ["asynchronous", "concurrency", "data-structures"] keywords = ["park", "future", "stream", "thread", "waker"] [lib] name = "suspend" path = "src/lib.rs" [features] default = ["oneshot"] oneshot = ["oneshot_rs"] [dependencies] futures-core = "0.3" futures-task = "0.3" oneshot_rs = { package = "oneshot", version = "0.1", optional = true } pin-utils = "0.1" [[example]] name = "suspend"