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

Upgrade coroutines dep to 1.3.0-M1. #409

Merged
merged 2 commits into from
Jun 26, 2019

Conversation

zach-klippenstein
Copy link
Collaborator

@zach-klippenstein zach-klippenstein added this to the kotlin v0.18.0 milestone Jun 13, 2019
@zach-klippenstein zach-klippenstein added this to In progress in Workflow (Kotlin) via automation Jun 13, 2019
@@ -372,6 +375,7 @@ class ReactorAsWorkflowIntegrationTest {
assertFalse(resultSub.isCompleted)

workflow.sendEvent("foo")
assertEquals(SecondState("foo"), stateSub.poll())
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this line for added coverage, or did the poll() call actually fix something?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Conflated channels now hang onto their last value even after they're closed, so we have to pull it out first now.

See Kotlin/kotlinx.coroutines#332

@@ -328,7 +327,7 @@ inline fun <reified T> ReceiveChannel<T>.asWorker(
* This **SHOULD NOT** be used in production code.
*/
@VeryExperimentalWorkflow
@FlowPreview
@ExperimentalCoroutinesApi
Copy link
Contributor

Choose a reason for hiding this comment

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

🍿

 - 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
Copy link
Collaborator Author

zach-klippenstein commented Jun 26, 2019

1.3.0-M2 was just released, adding a commit to this PR to bump again.

@rjrjr
Copy link
Contributor

rjrjr commented Jun 26, 2019

Still LGTM

@zach-klippenstein zach-klippenstein merged commit c3e4481 into master Jun 26, 2019
Workflow (Kotlin) automation moved this from In progress to Done Jun 26, 2019
@zach-klippenstein zach-klippenstein deleted the zachklipp/coroutines-1.3.0-M1 branch June 26, 2019 18:09
@zach-klippenstein zach-klippenstein added the kotlin Affects the Kotlin library. label Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kotlin Affects the Kotlin library.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants