This refactors ThreadMessages from being uniquely typed (and thus instantiating an extra overload of std.concurrency.send each) to instead share a common type runtime-distinguished by a Type enum member. It cuts compilation memory requirements considerably.
Thus they share one std.concurrency.send!ThreadMessage instantiation, instead of one for each static struct nested in ThreadMessage. (Pong, Save, BusMessage, Sendline, Quit, Reload, PeekCommands, etc.)
This refactors
ThreadMessage
s from being uniquely typed (and thus instantiating an extra overload ofstd.concurrency.send
each) to instead share a common type runtime-distinguished by aType
enum member. It cuts compilation memory requirements considerably.Thus they share one
std.concurrency.send!ThreadMessage
instantiation, instead of one for each static struct nested inThreadMessage
. (Pong
,Save
,BusMessage
,Sendline
,Quit
,Reload
,PeekCommands
, etc.)