pub async unsafe fn spawn_with_result<F, Map, T>( manager: &'static Manager, parent: TaskIdentifier, name: &str, stack: Stack, entry: F, map: Map, ) -> Result<(JoinHandle<T>, TaskIdentifier)>where F: FnOnce() -> i32 + 'static, Map: FnOnce(i32) -> T + 'static, T: 'static,
Like spawn, converting the exit status before signaling the task join handle.
spawn
Same contract as spawn.