executor, threadpool: forward port fix from #1155 (#1433)

Add executor::exit, allowing other executors inside threadpool::blocking.
This commit is contained in:
Ilya Lakhin
2019-08-13 21:12:49 -07:00
committed by Carl Lerche
parent 517162792f
commit fb9809c068
4 changed files with 62 additions and 2 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ mod global;
pub mod park;
mod typed;
pub use crate::enter::{enter, Enter, EnterError};
pub use crate::enter::{enter, exit, Enter, EnterError};
pub use crate::error::SpawnError;
pub use crate::executor::Executor;
pub use crate::global::{spawn, with_default, DefaultExecutor};