-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
MQTTMQTT-Related issuesMQTT-Related issuesfixme laternot a serious bug, still worth mentioning for laternot a serious bug, still worth mentioning for later
Description
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
Labels
MQTTMQTT-Related issuesMQTT-Related issuesfixme laternot a serious bug, still worth mentioning for laternot a serious bug, still worth mentioning for later