Skip to content

Commit d9b4ab2

Browse files
PaulWoitaschekelizarov
authored andcommitted
Replaced the hardcoded default value with the constant.
1 parent 45c0be9 commit d9b4ab2

File tree

1 file changed

+1
-1
lines changed
  • common/kotlinx-coroutines-core-common/src/channels

1 file changed

+1
-1
lines changed

common/kotlinx-coroutines-core-common/src/channels/Channel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ public fun <E> Channel(): Channel<E> = RendezvousChannel<E>()
387387
*
388388
* @throws IllegalArgumentException when [capacity] < -1
389389
*/
390-
public fun <E> Channel(capacity: Int = 0): Channel<E> =
390+
public fun <E> Channel(capacity: Int = RENDEZVOUS): Channel<E> =
391391
when (capacity) {
392392
RENDEZVOUS -> RendezvousChannel()
393393
UNLIMITED -> LinkedListChannel()

0 commit comments

Comments
 (0)