Struct std::rt::task::TaskOptsExperimental [-]  [+] [src]

pub struct TaskOpts {
    pub on_exit: Option<proc(Result<(), Box<Any>>): 'static + Send>,
    pub name: Option<MaybeOwned<'static>>,
    pub stack_size: Option<uint>,
}

Fields

on_exit

Invoke this procedure with the result of the task when it finishes.

name

A name for the task-to-be, for identification in panic messages

stack_size

The size of the stack for the spawned task

Methods

impl TaskOpts

fn new() -> TaskOpts