tomaka/redshirt

Provide a way to pull interface messages belonging to a specific interface

Closed this issue · 1 comments

At the moment, a program can only ever ask for "the next interface message" from the system, without specifying which interface. If multiple interfaces have been registered, the incoming message can belong to any of the registered ones.

This makes it impossible to write library code that registers interfaces and processes their messages.

Maybe a better way to handle interfaces could be to make the registerer emit slots for messages, into which a sender can then put a message. This seems like a good flow control pattern to me, as the interface handler could pull from each interface with more or less priority.

Done in #506