defaultHandlerFactory property

FunctionHandlerFactory defaultHandlerFactory
getter/setter pair

Factory function that creates the default FunctionHandler for state managers.

By default, this returns a sequential function handler, which processes tasks one at a time in a queue. This can be changed to use a different handler type globally across the application.

See also:

Implementation

static FunctionHandlerFactory defaultHandlerFactory =
    <State extends Object?>() => StreamFunctionHandler<State>(
        handleTransformer: (tasks, mapper) => tasks.asyncExpand(mapper));