Skip to content

[nodriver] Using Nodriver in already running event loops #1978

Discussion options

You must be logged in to vote

You can run it in whatever loop you want . To prevent the error you should close the websocket connections manually. Or, create task and run_until_complete like UC loop does but using your own loop.

You could also use contextlib suppress to , well, suppress the exception

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lunden23
Comment options

Answer selected by lunden23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants