schell / mogwai

The minimalist, obvious, graphical, web application interface
428 stars 26 forks source link

LockedTransmitter #9

Closed src-of-truth[bot] closed 4 years ago

src-of-truth[bot] commented 4 years ago

In component update functions you don't want the library user to send because it causes a race condition (caught and thrown by a mutex). Make it so a Transmitter can do all the wiring stuff and can send, but a LockedTransmitter https://github.com/schell/mogwai/blob/881b30f54d96dcc4900313a99bc74db1d15bc697/mogwai/src/txrx.rs#L43-L49

src-of-truth[bot] commented 4 years ago

Closed in commit 881b30f54d96dcc4900313a99bc74db1d15bc697 by @schell