MCPcopy Create free account
hub / github.com/NthTensor/Forte / join

Method join

src/thread_pool.rs:710–718  ·  view source on GitHub ↗
(&'static self, a: A, b: B)

Source from the content-addressed store, hash-verified

708 // Schedule the job-ref, looking up the current worker so woken
709 // futures tend to run on the thread that woke them.
710 Worker::with_current(|worker| scheduler.schedule(job_ref, worker));
711 };
712
713 // Create a runnable for the future.
714 //
715 // SAFETY: `spawn_unchecked` has four obligations:
716 //
717 // * If `Self` is `!Send`, its `Runnable` must be used and dropped on
718 // the original thread.
719 //
720 // The second clause of the `Spawn<M>::spawn` safety contract requires
721 // the caller to confine `scheduler` to the original thread, so

Callers 8

sumFunction · 0.80
forte_chunksFunction · 0.80
resizeMethod · 0.80
joinFunction · 0.80
join_basicFunction · 0.80
incrementFunction · 0.80
scope_concurrencyFunction · 0.80
runMethod · 0.80

Calls 14

halt_unwindingFunction · 0.85
resume_unwindingFunction · 0.85
with_workerMethod · 0.80
new_latchMethod · 0.80
as_job_refMethod · 0.80
push_newMethod · 0.80
promoteMethod · 0.80
recover_newestMethod · 0.80
unwrap_funcMethod · 0.80
wait_forMethod · 0.80
completion_latchMethod · 0.80
unwrap_errorMethod · 0.80

Tested by 2

join_basicFunction · 0.64
scope_concurrencyFunction · 0.64