Open
Description
While trying to use trio-chrome-devtools-protocol
, I encountered the need to dynamically retrieve an event class by it's CDP method name in order to wait_for()
it or listen()
to it
Is it possible to add support for that use case?
Maybe something like cdp.utils.get_event_class()
:
def get_event_class(method: str) -> typing.Any:
return _event_parsers[method]
Metadata
Metadata
Assignees
Labels
No labels