MCPcopy Create free account
hub / github.com/Qovery/engine / launch_blocking_task

Function launch_blocking_task

app/src/tokio_utils/mod.rs:51–53  ·  view source on GitHub ↗
(task: impl FnOnce() -> R + Send + 'static)

Source from the content-addressed store, hash-verified

49}
50
51pub fn launch_blocking_task<R: Send + 'static>(task: impl FnOnce() -> R + Send + 'static) -> JoinHandle<R> {
52 TOKIO_RUNTIME.spawn_blocking(task)
53}
54
55pub fn block_on<R>(task: impl Future<Output = R>) -> R {
56 TOKIO_RUNTIME.block_on(task)

Callers 1

spawn_new_taskMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected