resolve_custom_func
faststream.broker.parsers.resolve_custom_func #
resolve_custom_func(
custom_func: Optional[
Union[
CustomDecoder[StreamMsg],
CustomParser[MsgType, StreamMsg],
]
],
default_func: Union[
Decoder[StreamMsg], Parser[MsgType, StreamMsg]
],
) -> Union[Decoder[StreamMsg], Parser[MsgType, StreamMsg]]
Resolve a custom function.
PARAMETER | DESCRIPTION |
---|---|
custom_func | Optional custom function of type CustomDecoder or CustomParser. TYPE: |
default_func | Default function of type Decoder or Parser. TYPE: |
RETURNS | DESCRIPTION |
---|---|
Union[Decoder[StreamMsg], Parser[MsgType, StreamMsg]] | The resolved function of type Decoder or Parser. |
Note
The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)
Source code in faststream/broker/parsers.py
Last update: 2023-11-13