Creates a new WaterfallHandler that stores the given handlers.
Handlers over which it will run.
Private
Readonly
handlersProtected
Readonly
loggerFinds a handler that supports the given input and then lets it handle the given data.
A promise corresponding to the handle call of a handler that supports the input. It rejects if no handlers support the given data.
The data that needs to be handled.
Identical to handleSafe but optimized for composite by only needing 1 canHandle call on members.
A promise corresponding to the handle call of a handler that supports the input. It rejects if no handlers support the given data.
The input data.
A composite handler that tries multiple handlers one by one until it finds a handler that supports the input. The handlers will be checked in the order they appear in the input array, allowing for more fine-grained handlers to check before catch-all handlers.