forked from mirror/async-std
Update src/task/worker.rs
Co-Authored-By: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
parent
0924911ac3
commit
04dbcbb639
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ thread_local! {
|
|||
static QUEUE: Cell<Option<Worker<task::Runnable>>> = Cell::new(None);
|
||||
}
|
||||
|
||||
pub fn is_worker() -> bool {
|
||||
pub(crate) fn is_worker() -> bool {
|
||||
IS_WORKER.with(|is_worker| is_worker.get())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue