Struct rustrt::task::TaskOpts[src]

pub struct TaskOpts {
    pub on_exit: Option<proc(Result): Send>,
    pub name: Option<SendStr>,
    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 failure messages

stack_size

The size of the stack for the spawned task

Methods

impl TaskOpts

fn new() -> TaskOpts