[src]

Module native::task

Tasks implemented on top of OS threads

This module contains the implementation of the 1:1 threading module required by rust tasks. This implements the necessary API traits laid out by std::rt in order to spawn new tasks and deschedule the current task.

new

Creates a new Task which is ready to execute as a 1:1 task.

spawn

Spawns a function with the default configuration

spawn_opts

Spawns a new task given the configuration options and a procedure to run inside the task.