Skip to content

Add callsInPlace to ReceiveChannel.consume #2496

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

Merged
merged 3 commits into from
Jan 26, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions kotlinx-coroutines-core/common/test/BuilderContractsTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ class BuilderContractsTest : TestBase() {
}

private fun consume(a: Int) {
/*
* Verify the value is actually set correctly
* (non-zero, VerificationError is not triggered can be read)
*/
assertNotEquals(0, a)
assertEquals(a.hashCode(), a)
}
Expand Down