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

Pipe (|) does not work with subscribe, dot (.) does #4919

Open
bskubi opened this issue Apr 15, 2024 · 0 comments
Open

Pipe (|) does not work with subscribe, dot (.) does #4919

bskubi opened this issue Apr 15, 2024 · 0 comments

Comments

@bskubi
Copy link

bskubi commented Apr 15, 2024

Just a note that, similar to tap, the subscribe operator only works when called with '.', not with '|'.

Works:

channel.of(1, 2, 3).subscribe onNext: {println(it)}

Does not work:

channel.of(1, 2, 3) | subscribe onNext: {println(it)}
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