Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can one poll more than just a few conns? #16

Open
stefan-leftclick opened this issue Sep 11, 2019 · 2 comments
Open

How can one poll more than just a few conns? #16

stefan-leftclick opened this issue Sep 11, 2019 · 2 comments

Comments

@stefan-leftclick
Copy link

If I had more than one 'conn' to poll, then how will I know which 'conn' to read from CallbackFn(), if 'conn' was not defined as global?
Thanks

@devansh42
Copy link

I think, that's really depends on your specific problem, A code snippet will help me to figure it out.

@gobwas
Copy link
Contributor

gobwas commented Jul 21, 2020

Hey @stefan-leftclick usually you use closure for such things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants