Skip to content

Commit

Permalink
Update madsim-tokio/src/sim/runtime.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
wangrunji0408 authored Apr 9, 2024
1 parent fb3dc13 commit 481659f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion madsim-tokio/src/sim/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl Runtime {
}

pub fn block_on<F: Future>(&self, _future: F) -> F::Output {
unimplemented!();
unimplemented!("blocking the current thread is not allowed in madsim");
}

pub fn enter(&self) -> EnterGuard<'_> {
Expand Down

0 comments on commit 481659f

Please # to comment.