Skip to content

Latest commit

 

History

History
45 lines (17 loc) · 1.25 KB

index.md

File metadata and controls

45 lines (17 loc) · 1.25 KB
PHEXT > Detach > API Reference

API Reference

Task

Fork a seperate process (based on the parent) and execute the requested callback.

Dispatcher

The Dispatch class acts as a static interface to the various classes of the detach library and, along with the global methods, acts as the primary interface for working with seperate tasks.

TaskMap

The TaskMap class maps an array of elements each unto their own seperate task.

WaitGroup

A WaitGroup provides an alternative mechanism for synchronising the completion of a subset of tasks.

Channel

Channel is a loose implentation of channels from the Go language. It provides a simple way of allowing independant processes to send and receive data between one another.

BufferedChannel

A BufferedChannel is an queue of values that may be passed between tasks. Unlike a standard channel, it may continue to accept new values before any existing ones have been read in via another task.

Global Methods

Detach exports much of the Dispatcher interface to a series of global standalone functions, allowing a syntactic alternative to interfacing with the library.