On 2/8/2012 5:21 PM, Brian Anderson wrote:

We currently have a single function that can be used to take advantage of this: 
core::task::spawn_sched. It spawns a new task into a new scheduler and takes an 
argument for the number of OS threads the scheduler should use.

     spawn_sched(1) {||
         // do some blocky sockets business
     }

     // go on my merry way

\o/

Great, thanks.

-Graydon


_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to