lparallel
lparallel copied to clipboard
Select from multiple channels
Hey there,
Was looking at the documentation, but didn't find an example whether this is supported or not, so asking the question here.
How can we select from multiple channels? For example, let's say that I have one channel for submitting tasks, and another one, which is being used to signal an exit
condition.
In Go, that would be using select
over multiple channels. See https://gobyexample.com/select for example.
How do implement the same in lparallel
?
Thanks!