Skip to content

How to wait for connection ? #104

Answered by frederikaalund
nduhamel asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Nicolas. Thanks for opening this issue. Let me have a look. :)

I would like to know if there is a way to wait for connection without using context manager.

The short answer is no. The context manager is the preferred way. You can hack your way around it (e.g., call connect or __aenter__ directly) but that may break in a future release.

Try to ask on stackoverflow.com or similar if you're unsure about context managers and asyncio in general. :)

~Frederik

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@frederikaalund
Comment options

@nduhamel
Comment options

Answer selected by nduhamel
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