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

New flow builder: channelFlow (and its alias callbackFlow) and supple… #1214

Merged
merged 3 commits into from May 27, 2019

Conversation

@qwwdfsad
Copy link
Member

commented May 21, 2019

…mentary ProducerScope.await method

Rationale:

* Can be used in different context without breaking context preservation
* Can be used to build concurrent operators such as merge
* Can be used to integrate with callbacks
* Is less error-prone than flowViaChannel because requires explicit await() call

Partially fixes #1210

@qwwdfsad qwwdfsad requested a review from elizarov May 21, 2019

qwwdfsad added some commits May 21, 2019

New flow builder: channelFlow (and its alias callbackFlow) and supple…
…mentary ProducerScope.await method

Rationale:

    * Can be used in different context without breaking context preservation
    * Can be used to build concurrent operators such as merge
    * Can be used to integrate with callbacks
    * Is less error-prone than flowViaChannel because requires explicit await() call

Partially fixes #1210

@qwwdfsad qwwdfsad force-pushed the channel-flow branch from e28ff2e to ad0d42d May 27, 2019

@qwwdfsad qwwdfsad force-pushed the channel-flow branch from d855449 to 83b3196 May 27, 2019

@qwwdfsad qwwdfsad merged commit b08d61c into develop May 27, 2019

1 check was pending

Build (Aggregated Linux+Windows) (kotlinx-coroutines) TeamCity build started
Details

@qwwdfsad qwwdfsad deleted the channel-flow branch May 27, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.