once

Function once 

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

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