One thing you can do is to `spawn` a new mailbox and then write any
messages intended for a dynamic number of listeners to that mailbox.
Any time you want to create a new listener just fork a thread for that
listener and have it listen to that mailbox's `Input`.
On 3/21/2015 1:20 PM, Dima Gorbik wrote:
Hello,
I am facing the following problem — I need to add broadcast clients
dynamically. Monoidal concatenation only allows to specify these
clients statically. Theoretically I could have a dispatching pipe that
would operate on a number of boxes for all clients but then how would
I add new boxes to the dispatcher dynamically without restarting the
whole pipe. What's the best way to implement this?
Thanks,
Dima
--
You received this message because you are subscribed to the Google
Groups "Haskell Pipes" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to haskell-pipes+unsubscr...@googlegroups.com
<mailto:haskell-pipes+unsubscr...@googlegroups.com>.
To post to this group, send email to haskell-pipes@googlegroups.com
<mailto:haskell-pipes@googlegroups.com>.
--
You received this message because you are subscribed to the Google Groups "Haskell
Pipes" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to haskell-pipes+unsubscr...@googlegroups.com.
To post to this group, send email to haskell-pipes@googlegroups.com.