1
Fork 0

Added a library version of spawn. Before long, we can remove the old version.

This commit is contained in:
Eric Holk 2011-08-10 18:48:57 -07:00
parent 871d1317e5
commit b2dad8af31
8 changed files with 161 additions and 30 deletions

View file

@ -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);
}