Callback that runs a sequence of callbacks in order.
Each callback receives the state as (possibly) updated by the preceding
ones, so their effects compose left to right.
-
callbacks: tuple[Callback, ...]
The callbacks to run, in order.
-
__call__(*, state, **kwargs)[source]
Invoke each callback in turn, threading the state through them.
- Return type:
tuple[State, CallbackTuple]