Get Started
Draft
Moved as is from the old README. A later stage rewrites it.
Steps
- One thread, one struct. A
SinglyTypedNodein your struct, a helper, aQueue. - Add a thread. Send parents over
Io.Queue(*Anchor). - Add a pool, when repeated allocation becomes a problem.
- Replace the channel with a mailbox, when the channel stops being enough.
What the mailbox adds to a channel:
- no allocation on transfer
closegives back what was queued- timeouts,
wakeUpAll, sending to the front, a per-type limit
If the channel already does what you need, keep it.