diff --git a/src/task/worker.rs b/src/task/worker.rs index 71b93ead..fc2a6e7e 100644 --- a/src/task/worker.rs +++ b/src/task/worker.rs @@ -75,7 +75,7 @@ thread_local! { static QUEUE: Cell>> = Cell::new(None); } -pub fn is_worker() -> bool { +pub(crate) fn is_worker() -> bool { IS_WORKER.with(|is_worker| is_worker.get()) }