mirror of
				https://github.com/async-rs/async-std.git
				synced 2025-11-04 02:36:39 +00:00 
			
		
		
		
	* 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 {}));
 | 
						|
}
 |