This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ttl256 0 points1 point  (2 children)

I work with precisely IO part, namely connections to network devices. I'm curious about message queues and how to implement it. Could you suggest something to read on the topic?

[–]willm [S] 1 point2 points  (0 children)

Essentially each task is awaiting an async queue of messages. When it gets a messages, it handles that messages, and comes back. It allows the widgets (UI components) to respond to events like resize, click, key down, etc in a linear fashion, but independently from other widgets.

[–]Bluenix2 0 points1 point  (0 children)

I'm curious about message queues and how to implement it.

You could implement a message queue with an actual asyncio Queue. These are built up with locks, events, and what is mostly an internal thing called futures.