Update src/task/worker.rs

Co-Authored-By: Yoshua Wuyts <yoshuawuyts@gmail.com>
pull/205/head
Stjepan Glavina 5 years ago committed by GitHub
parent 0924911ac3
commit 04dbcbb639
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save