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

Adjust behavior of conflated channel to deliver last value #1239

Merged
merged 1 commit into from
Jun 4, 2019

Conversation

elizarov
Copy link
Contributor

Fixes #1235
Fixes #332

@elizarov elizarov requested a review from qwwdfsad May 31, 2019 12:35
@qwwdfsad
Copy link
Member

qwwdfsad commented Jun 2, 2019

I think we should document this behaviour somewhere, e.g. around Factory.CONFLATED

@elizarov
Copy link
Contributor Author

elizarov commented Jun 3, 2019

I've fixed the linearizability & moved the code. As for docs, it seems to be already documented this way right here: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.channels/-channel/index.html

@elizarov elizarov requested a review from qwwdfsad June 3, 2019 16:19
Copy link
Member

@qwwdfsad qwwdfsad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests do not pass

@elizarov elizarov merged commit b73ebdc into develop Jun 4, 2019
@elizarov elizarov deleted the conflated branch June 4, 2019 17:13
zach-klippenstein added a commit to square/workflow that referenced this pull request Jun 13, 2019
 - Breakage in `CoroutineWorkflow` was caused by Kotlin/kotlinx.coroutines#1158.
 - Breakage in `ReactorAsWorkflowIntegrationTest` was probably caused by Kotlin/kotlinx.coroutines#1239.
zach-klippenstein added a commit to square/workflow that referenced this pull request Jun 13, 2019
 - Some things that were `@FlowPreview` have been graduated to `@ExperimentalCoroutinesApi`.
 - Breakage in `CoroutineWorkflow` was caused by Kotlin/kotlinx.coroutines#1158.
 - Breakage in `ReactorAsWorkflowIntegrationTest` was probably caused by Kotlin/kotlinx.coroutines#1239.
zach-klippenstein added a commit to square/workflow that referenced this pull request Jun 26, 2019
 - Some things that were `@FlowPreview` have been graduated to `@ExperimentalCoroutinesApi`.
 - Breakage in `CoroutineWorkflow` was caused by Kotlin/kotlinx.coroutines#1158.
 - Breakage in `ReactorAsWorkflowIntegrationTest` was probably caused by Kotlin/kotlinx.coroutines#1239.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants