Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take a TakeableChannel as part of take(Array) call #2120

Open
yardenapp opened this issue Sep 8, 2020 · 0 comments
Open

Take a TakeableChannel as part of take(Array) call #2120

yardenapp opened this issue Sep 8, 2020 · 0 comments

Comments

@yardenapp
Copy link

Issue Description

I am not able to take on an eventChannel that is part of an array of takeable patterns/channels.

Example

  1. Try to take on an eventChannel, passing it as part of an array.

Code example:

// The following line doesn't work
const event = yield take([takeableEventChannel]);

// The following line works
const event = yield take(takeableEventChannel);

// A workaround for this issue/missing syntax
const event = yield race([take(['action_type']), take(takeableEventChannel)])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants