mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-16 10:49:55 +00:00
87de4e1598
* Add utility type Registry to the sync module * Remove unused import * Split unregister into complete and cancel * Refactoring and renaming * Split remove() into complete() and cancel() * Rename to WakerSet * Ignore clippy warning * Ignore another clippy warning * Use stronger SeqCst ordering
11 lines
163 B
Rust
11 lines
163 B
Rust
#![feature(test)]
|
|
|
|
extern crate test;
|
|
|
|
use async_std::task;
|
|
use test::Bencher;
|
|
|
|
#[bench]
|
|
fn block_on(b: &mut Bencher) {
|
|
b.iter(|| task::block_on(async {}));
|
|
}
|