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