Interface Subscription<C extends FlowContext>

Type Parameters:
C - the type of the context shared between tasks
All Known Subinterfaces:
Repeat<C>, Sequence<C>

public interface Subscription<C extends FlowContext>
An interface to subscribe to the outcome of the execution of asynchronous tasks.

Error Handling
When using the methods in this interface, errors in tasks are caught and are stored in the context. The context provides methods to check if the execution was successful, ran into a timeout or failed with an error. This is different from the methods in Promisable that propagates errors to the closest catch handler.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Subscribes to the outcome of the execution of asynchronous tasks.