publish(message, /, *, correlation_id=None, _extra_middlewares=())
Publishes a message asynchronously.
Source code in faststream/broker/publisher/proto.py
| @abstractmethod
async def publish(
self,
message: "SendableMessage",
/,
*,
correlation_id: Optional[str] = None,
_extra_middlewares: Sequence["PublisherMiddleware"] = (),
) -> Optional[Any]:
"""Publishes a message asynchronously."""
...
|