NatsRoute
faststream.broker.router.BrokerRoute #
Bases: Generic[MsgType, T_HandlerReturn]
A generic class to represent a broker route.
PARAMETER | DESCRIPTION |
---|---|
call | callable object representing the route
|
*args | variable length arguments for the route DEFAULT: |
**kwargs | variable length keyword arguments for the route DEFAULT: |
Note
The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)
Initialize a callable object with arguments and keyword arguments.
PARAMETER | DESCRIPTION |
---|---|
call | A callable object. TYPE: |
*args | Positional arguments to be passed to the callable object. TYPE: |
**kwargs | Keyword arguments to be passed to the callable object. TYPE: |
Note
The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)
Source code in faststream/broker/router.py
Last update: 2023-11-13