Registry / async / spin-on

spin-on

JSON →
library0.1.1rscratesunverified

A simple, inefficient Future executor that spins until completion.

# Cargo.toml [dependencies] spin_on = "0.1.1"
INSTALL
IMPORT
SIG · SPIN-ON
S
spin-on
asyncrustv0.1.1
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.

spin_on
use spin_on::spin_on;

Block on an async future by busy-waiting.

use spin_on::spin_on; let result = spin_on(async { 42 }); assert_eq!(result, 42);
Debug
Known issues
gotchaThis executor is inefficient as it busy-waits; not for production use.
fix
Use a proper async runtime like tokio or async-std.
affects: >=0.1.0
Upgrade
Version history
0.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
28
OpenAI (training)
1
Resources
spin-on — cargo add spin-on · libregistry