pub fn spawn(&mut self, opts: TaskOpts, f: proc()) {
        let task = self.task(opts, f);

        // Figure out someone to send this task to
        let idx = self.next_friend;
        self.next_friend += 1;
        if self.next_friend >= self.handles.len() {
            self.next_friend = 0;
        }

        // Jettison the task away!
        self.handles[idx].send(TaskFromFriend(task));
    }
/// Spawns a new task into this pool of schedulers, using the specified
/// options to configure the new task which is spawned.
///
/// New tasks are spawned in a round-robin fashion to the schedulers in this
/// pool, but tasks can certainly migrate among schedulers once they're in
/// the pool.
Spawns a new task into this pool of schedulers, using the specified
options to configure the new task which is spawned.

New tasks are spawned in a round-robin fashion to the schedulers in this
pool, but tasks can certainly migrate among schedulers once they're in
the pool.
Spawns a new task into this pool of schedulers using the specified options to configure the new task which is spawned . New tasks are spawned in a round - robin fashion to the schedulers in this pool but tasks can certainly migrate among schedulers once they ' re in the pool .
pub fn spawn(&mut self, opts: TaskOpts, f: proc()) {
        let task = self.task(opts, f);
        // Figure out someone to send this task to
        let idx = self.next_friend;
        self.next_friend += 1;
        if self.next_friend >= self.handles.len() {
            self.next_friend = 0;
        }
        // Jettison the task away!
        self.handles[idx].send(TaskFromFriend(task));
    }
pub fn spawn ( & mut self , opts : TaskOpts , f : proc ( ) ) { let task = self . task ( opts , f ) ; // Figure out someone to send this task to let idx = self . next_friend ; self . next_friend += 1 ; if self . next_friend >= self . handles . len ( ) { self . next_friend = 0 ; } // Jettison the task away! self . handles [ idx ] . send ( TaskFromFriend ( task ) ) ; }
Spawns a new task into this pool of schedulers, using the specified
options to configure the new task which is spawned.
Spawns a new task into this pool of schedulers using the specified options to configure the new task which is spawned .
&mut self
opts
TaskOpts
f
proc()
&mut self
opts
TaskOpts
f
proc()