PHEXT > Detach > API Reference
Fork a seperate process (based on the parent) and execute the requested callback.
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.
The TaskMap class maps an array of elements each unto their own seperate task.
A WaitGroup provides an alternative mechanism for synchronising the completion of a subset of tasks.
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.
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.
Detach exports much of the Dispatcher interface to a series of global standalone functions, allowing a syntactic alternative to interfacing with the library.