-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sync primitives Notify and watch::channel
- Loading branch information
Showing
9 changed files
with
1,964 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = ["asyncs-test"] | ||
members = ["asyncs-test", "asyncs-sync"] | ||
|
||
[workspace.package] | ||
license = "Apache-2.0" | ||
version = "0.2.1" | ||
edition = "2021" | ||
authors = ["Kezhu Wang <[email protected]>"] | ||
homepage = "https://github.com/kezhuw/asyncs" | ||
repository = "https://github.com/kezhuw/asyncs" | ||
documentation = "https://docs.rs/asyncs" | ||
|
@@ -37,8 +38,9 @@ spawns-compat = ["spawns-core/compat"] | |
[dependencies] | ||
async-select = "0.2.0" | ||
asyncs-test = { version = "0.2.1", path = "./asyncs-test", optional = true } | ||
spawns = { version = "0.2.3", optional = true } | ||
spawns-core = "1.1.0" | ||
asyncs-sync = { version = "0.2.1", path = "./asyncs-sync" } | ||
spawns = { version = "0.2.4", optional = true } | ||
spawns-core = "1.1.1" | ||
|
||
[dev-dependencies] | ||
test-case = "3.3.1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[package] | ||
name = "asyncs-sync" | ||
description = "Asynchronous runtime agnostic synchronization utilities" | ||
readme.workspace = true | ||
authors.workspace = true | ||
edition.workspace = true | ||
version.workspace = true | ||
homepage.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
documentation.workspace = true | ||
|
||
[dependencies] | ||
|
||
[dev-dependencies] | ||
asyncs = { version = "0.2.1", path = "../", features = ["test"] } | ||
futures = "0.3.30" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//! Utilities to synchronize among asynchronous tasks | ||
|
||
mod notify; | ||
mod parker; | ||
pub mod watch; | ||
|
||
pub use notify::*; |
Oops, something went wrong.