transformer_requires_async(
transformer: StreamTransformer,
) -> bool| Name | Type | Description |
|---|---|---|
transformer* | StreamTransformer | The transformer to inspect. |
Return True if the transformer needs a running event loop.
A transformer requires async if it explicitly opts in
(requires_async = True) or overrides any of the async-lane methods
(aprocess, afinalize, afail) without also declaring that it
supports the sync lane.