Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/scope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl<'scope, 'env> Scope<'scope, 'env> {
let job_ref = unsafe { job.into_job_ref() };

// Send the job to a queue to be executed.
worker.queue.push_back(job_ref);
worker.enqueue(job_ref);
}

/// Spawns a future onto the scope. This future will be asynchronously
Expand Down Expand Up @@ -198,7 +198,7 @@ impl<'scope, 'env> Scope<'scope, 'env> {
// same thread instead of jumping around randomly. This is also
// faster than injecting into the global queue.
thread_pool.with_worker(|worker| {
worker.queue.push_back(job_ref);
worker.enqueue(job_ref);
});
};

Expand Down