Function task_pool::once

source ·
pub fn once<T: 'static + Send>(
    f: impl 'static + FnOnce() -> T + Send
) -> impl TaskCollection<T>
Expand description

Returns a queueable task that executes a single closure one time.