betty.dispatch module¶
Provide the Dispatch API.
- class betty.dispatch.Dispatcher[source]¶
Bases:
objectDispatch events to handlers.
- dispatch(target_type: type[Any]) Callable[[...], Awaitable[Sequence[Any]]][source]¶
Dispatch a single target.
- Parameters:
target_type (
type[typing.Any])- Return type:
typing.Callable[...,typing.Awaitable[typing.Sequence[typing.Any]]]