Skip to content

Commit e9f40c3

Browse files
committed
Update constants in debounce example so it will work on slow machines with non-virtual time
Fixes #1434
1 parent 64902a9 commit e9f40c3

File tree

1 file changed

+4
-4
lines changed
  • kotlinx-coroutines-core/common/src/flow/operators

1 file changed

+4
-4
lines changed

kotlinx-coroutines-core/common/src/flow/operators/Delay.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ import kotlinx.coroutines.flow.internal.unsafeFlow as flow
2323
* ```
2424
* flow {
2525
* emit(1)
26-
* delay(99)
26+
* delay(90)
2727
* emit(2)
28-
* delay(99)
28+
* delay(90)
2929
* emit(3)
30-
* delay(1001)
30+
* delay(1010)
3131
* emit(4)
32-
* delay(1001)
32+
* delay(1010)
3333
* emit(5)
3434
* }.debounce(1000)
3535
* ```

0 commit comments

Comments
 (0)