Skip to content

Fix wait_for #25

@Xasin

Description

@Xasin

See Reviewable comment in #22 by CyanRainNin:

According to comment above the block is optional.
So this blocks the main thread?
How about spawning a thread to handle setting a false/true fiber-variable and unregistering after timeout. When you return that the receiver can use .join if it is supposed to be blocking.

To avoid breaking existing code, you could do the above as a new wait_for_async method implementation

It's a good idea, definitely something for later!

Metadata

Metadata

Assignees

No one assigned

    Labels

    MQTTMQTT-Related issuesfixme laternot a serious bug, still worth mentioning for later

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions