core: Update task spawning example
This commit is contained in:
parent
48019c5b0a
commit
e3afc78fde
@ -21,9 +21,9 @@ Tasks may execute in parallel and are scheduled automatically by the runtime.
|
||||
|
||||
Example:
|
||||
|
||||
> spawn("Hello, World", fn (&&msg: str) {
|
||||
> log(debug, msg);
|
||||
> });
|
||||
> spawn {||
|
||||
> log(debug, "Hello, World!");
|
||||
> };
|
||||
|
||||
*/
|
||||
import cast = unsafe::reinterpret_cast;
|
||||
|
Loading…
Reference in New Issue
Block a user