lparallel icon indicating copy to clipboard operation
lparallel copied to clipboard

Select from multiple channels

Open dnaeon opened this issue 2 years ago • 0 comments

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!

dnaeon avatar Nov 20 '22 12:11 dnaeon