Skip to main content

drive_owned

Function drive_owned 

Source
pub async fn drive_owned(coroutine: Coroutine, owner: AnyProcessOwner) -> i32
Expand description

Drive the program’s coroutine to its end, then free what it ran on. The coroutine is dropped before owner, on every path, including the future being dropped while the program is suspended: the temporary that holds it is the newest object of this function, so it is the first to be dropped.