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

Function execute_runnable

src/thread_pool.rs:533–543  ·  view source on GitHub ↗
(this: NonNull<()>, _worker: &Worker)

Source from the content-addressed store, hash-verified

531// Spawn Trait
532
533pub use async_task::Task;
534
535/// A trait for types that can be spawned onto a [`ThreadPool`].
536///
537/// This trait is sealed and cannot be implemented outside of forte.
538///
539/// It is implemented for:
540///
541/// * Closures that satisfy `for<'worker> FnOnce(&'worker Worker) + Send + 'static`.
542///
543/// * Futures that satisfy `Future<Output = T> + Send + 'static` where `T: Send + 'static`.
544///
545/// * References to `'static` [`JobStorage`], which run the stored [`Job`]
546/// without allocating.

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected