forked from mirror/async-std
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 {}));
|
|
}
|