Skip to content

Commit f5478b9

Browse files
authored
Merge pull request #58 from EspressoSystems/jr/add_yield_now
feat: add async_yield_now
2 parents 1d6341c + 6ddaa91 commit f5478b9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/art/async-std.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub use async_std::{
55
net::TcpStream,
66
task::{
77
block_on as async_block_on, block_on as async_block_on_with_runtime, sleep as async_sleep,
8-
spawn as async_spawn, spawn_local as async_spawn_local,
8+
spawn as async_spawn, spawn_local as async_spawn_local, yield_now as async_yield_now,
99
},
1010
test as async_test,
1111
};

src/art/tokio.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ pub use tokio::{
44
main as async_main,
55
net::TcpStream,
66
task::spawn as async_spawn_local,
7+
task::yield_now as async_yield_now,
78
test as async_test,
89
time::{sleep as async_sleep, timeout as async_timeout},
910
};

0 commit comments

Comments
 (0)