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

ROUTER: poll() and not just recv() ? #195

Open
Theodlz opened this issue Jul 13, 2024 · 0 comments
Open

ROUTER: poll() and not just recv() ? #195

Theodlz opened this issue Jul 13, 2024 · 0 comments

Comments

@Theodlz
Copy link

Theodlz commented Jul 13, 2024

Hi!

I've been playing with the router socket and everything has been great so far. However I do have one issue. With the python client of zeromq, I can poll from a router socket like .poll(0), effectively ensuring that I do not wait for a message to come in. I can poll if something is pending and otherwise continue.

However, I can't do that here in rust, at least not to my knowledge.

For context: I'm implementing a job queue with a Router dispatching jobs to workers with dealer sockets.

Thanks!

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

1 participant