Classes

The following classes are available globally.

  • Link is the primary interface for HoneyBee processes. A link represents a single asynchronous function, as well as its execution context. The execution context includes:

    1. A AsyncBlockPerformer execution context
    2. An error handling function for when things go wrong
    3. A list of child Links to execute using the result of this link.

    A single link’s execution process is as follows:

    1. Link is executed with the execution argument.
    2. This method’s function is called with argument. If the function errors, then the error is given to this link’s registered error handler along with an optional ErrorContext
    3. (If the function does not error) The result value B is captured.
    4. This link’s child links are individually, in parallel executed in this link’s AsyncBlockPerformer
    5. When all of the child links have completed their execution, then this link signals that it has completed execution, via callback.
    See more

    Declaration

    Swift

    final public class Link<B> : Executable, PathDescribing
  • Super type of executable types.

    Declaration

    Swift

    public class Executable
  • SafeLink is a representation of a Link which is guaranteed to non-erroring. The interface of SafeLink is a proper subset of the interface to Link. All functions in Link which are capable of introducing errors into the process chain are omitted from the interface of SafeLink. To transition from a non-erroring chain to an erroring chain use setErrorHandler: which returns a full Link.

    See more

    Declaration

    Swift

    public class SafeLink<B> : SafeChainable