Skip to content

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

@Theodlz

Description

@Theodlz

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions