Skip to content

What's the correct way of creating listeners using a connection pool? #812

Answered by elprans
theo-brown asked this question in Q&A
Discussion options

You must be logged in to vote

That's the correct way. If you want something to live in Python, you must keep a reference to it. Most frameworks have a global state object you can write to (e.g. app in Flask).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@theo-brown
Comment options

@elprans
Comment options

Answer selected by theo-brown
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