Added a library version of spawn. Before long, we can remove the old version.
This commit is contained in:
parent
871d1317e5
commit
b2dad8af31
8 changed files with 161 additions and 30 deletions
|
@ -33,3 +33,8 @@ fn test_send_recv() {
|
|||
assert (task::recv(p) == 10);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_lib_spawn() {
|
||||
fn foo() { log_err "Hello, World!"; }
|
||||
task::_spawn(foo);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue