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

Method scope

src/thread_pool.rs:724–729  ·  view source on GitHub ↗
(&'static self, f: F)

Source from the content-addressed store, hash-verified

722 let (runnable, task) =
723 unsafe { async_task::spawn_unchecked(self, schedule_task) };
724
725 // Perform the initial schedule via the task's own stored schedule
726 // function, pushing a `JobRef` for the future onto the current worker's
727 // queue. If the future doesn't complete, it can be woken and scheduled
728 // again later.
729 runnable.schedule();
730
731 // Return the task.
732 task

Callers 15

forteFunction · 0.80
forteFunction · 0.80
scopeFunction · 0.80
scope_emptyFunction · 0.80
scope_resultFunction · 0.80
scope_twoFunction · 0.80
scope_borrowFunction · 0.80
scope_borrow_twiceFunction · 0.80
scope_futureFunction · 0.80
scope_pending_futureFunction · 0.80
scope_sleeping_futureFunction · 0.80

Calls 2

with_scopeFunction · 0.85
with_workerMethod · 0.80

Tested by 12

scope_emptyFunction · 0.64
scope_resultFunction · 0.64
scope_twoFunction · 0.64
scope_borrowFunction · 0.64
scope_borrow_twiceFunction · 0.64
scope_futureFunction · 0.64
scope_pending_futureFunction · 0.64
scope_sleeping_futureFunction · 0.64
scope_nestingFunction · 0.64
scope_nesting_new_workerFunction · 0.64
scope_divide_and_conquerFunction · 0.64