Skip to main content

enter_async

Function enter_async 

Source
pub fn enter_async<F: Future>(name_id: u32, body: F) -> PianoFuture<F> 
Expand description

Wrap an async function body for profiling.

If profiling is not active, returns a transparent wrapper whose poll delegates directly to the inner future with no overhead.