Registry / async / desync

desync

JSON →
library0.9.0rscratesunverified

Provides a hassle-free data type for asynchronous programming, simplifying concurrent state management.

# Cargo.toml [dependencies] desync = "0.9.0"
INSTALL
IMPORT
SIG · DESYNC
D
desync
asyncrustv0.9.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.

Desync
use desync::Desync;

Shows basic usage of Desync for synchronized access.

use desync::Desync; fn main() { let counter = Desync::new(0); counter.sync(|val| *val += 1); println!("Counter: {:?}", counter.sync(|val| *val)); }
Debug
Known issues
gotchaRequires an async runtime (e.g., tokio) for full functionality.
fix
Add tokio or another async runtime as a dependency and ensure it is running.
affects: >=0.9.0
Upgrade
Version history
0.9.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
28
OpenAI (training)
1
Resources
desync — cargo add desync · libregistry