Skip to content

Select from multiple channels #45

@dnaeon

Description

@dnaeon

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions