Skip to content
Browse files

Merge pull request #7 from bblum/master

test.rs: Change to new task_builder
  • Loading branch information...
2 parents 0f3d130 + 0fa9af4 commit 6020e06214d892f1e925f4c3ca8ac4e6b80fc00d @brson committed Jul 24, 2012
Showing with 2 additions and 10 deletions.
  1. +2 −10 test.rs
View
12 test.rs
@@ -1,18 +1,10 @@
fn on_osmain(f: fn~()) {
- let builder = task::builder();
- task::set_opts(builder, {
- sched: some({
- mode: task::osmain,
- foreign_stack_size: none
- })
- with task::get_opts(builder)
- });
let po = comm::port();
let ch = comm::chan(po);
- task::run(builder, || {
+ do task::spawn_sched(task::osmain) {
f();
comm::send(ch, ());
- });
+ }
comm::recv(po);
}

0 comments on commit 6020e06

Please sign in to comment.
Something went wrong with that request. Please try again.