[src]

Function std::task::spawn

pub fn spawn(f: proc())

Creates and executes a new child task

Sets up a new task with its own call stack and schedules it to run the provided unique closure.

This function is equivalent to task().spawn(f).