Module native::task[src]

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.

Structs

NativeSpawner

A spawner for native tasks

Traits

NativeTaskBuilder

An extension trait adding a native configuration method to TaskBuilder.

Functions

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.