You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: binary-compatibility-validator/reference-public-api/kotlinx-coroutines-core.txt
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -849,12 +849,15 @@ public final class kotlinx/coroutines/experimental/channels/SubscriptionReceiveC
849
849
}
850
850
851
851
public final class kotlinx/coroutines/experimental/channels/TickerChannelsKt {
852
-
public static final fun adjustingTicker (JLjava/util/concurrent/TimeUnit;JLkotlin/coroutines/experimental/CoroutineContext;)Lkotlinx/coroutines/experimental/channels/ReceiveChannel;
853
-
public static synthetic fun adjustingTicker$default (JLjava/util/concurrent/TimeUnit;JLkotlin/coroutines/experimental/CoroutineContext;ILjava/lang/Object;)Lkotlinx/coroutines/experimental/channels/ReceiveChannel;
854
-
public static final fun fixedTicker (JLjava/util/concurrent/TimeUnit;JLkotlin/coroutines/experimental/CoroutineContext;)Lkotlinx/coroutines/experimental/channels/ReceiveChannel;
855
-
public static synthetic fun fixedTicker$default (JLjava/util/concurrent/TimeUnit;JLkotlin/coroutines/experimental/CoroutineContext;ILjava/lang/Object;)Lkotlinx/coroutines/experimental/channels/ReceiveChannel;
856
-
public static final fun ticker (JLjava/util/concurrent/TimeUnit;JLkotlin/coroutines/experimental/CoroutineContext;Z)Lkotlinx/coroutines/experimental/channels/ReceiveChannel;
857
-
public static synthetic fun ticker$default (JLjava/util/concurrent/TimeUnit;JLkotlin/coroutines/experimental/CoroutineContext;ZILjava/lang/Object;)Lkotlinx/coroutines/experimental/channels/ReceiveChannel;
852
+
public static final fun ticker (JLjava/util/concurrent/TimeUnit;JLkotlin/coroutines/experimental/CoroutineContext;Lkotlinx/coroutines/experimental/channels/TickerMode;)Lkotlinx/coroutines/experimental/channels/ReceiveChannel;
853
+
public static synthetic fun ticker$default (JLjava/util/concurrent/TimeUnit;JLkotlin/coroutines/experimental/CoroutineContext;Lkotlinx/coroutines/experimental/channels/TickerMode;ILjava/lang/Object;)Lkotlinx/coroutines/experimental/channels/ReceiveChannel;
854
+
}
855
+
856
+
public final class kotlinx/coroutines/experimental/channels/TickerMode : java/lang/Enum {
857
+
public static final field FIXED_DELAY Lkotlinx/coroutines/experimental/channels/TickerMode;
858
+
public static final field FIXED_PERIOD Lkotlinx/coroutines/experimental/channels/TickerMode;
859
+
public static fun valueOf (Ljava/lang/String;)Lkotlinx/coroutines/experimental/channels/TickerMode;
860
+
public static fun values ()[Lkotlinx/coroutines/experimental/channels/TickerMode;
858
861
}
859
862
860
863
public final class kotlinx/coroutines/experimental/intrinsics/CancellableKt {
Copy file name to clipboardExpand all lines: core/kotlinx-coroutines-core/src/test/kotlin/kotlinx/coroutines/experimental/channels/TickerChannelCommonTest.kt
Copy file name to clipboardExpand all lines: core/kotlinx-coroutines-core/src/test/kotlin/kotlinx/coroutines/experimental/channels/TickerChannelTest.kt
Copy file name to clipboardExpand all lines: coroutines-guide.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1669,36 +1669,36 @@ The first four elements are added to the buffer and the sender suspends when try
1669
1669
1670
1670
### Ticker channels
1671
1671
1672
-
Ticker channel is a special rendezvous channel, which produces `Unit` every time given delay passes since last consumption from this channel.
1673
-
Though it may seem to be useless standalone, it is a useful building block to create complex time-based [produce] operators, using this channel as one of [select] clauses and performing "timeout" action in its [onReceive][ReceiveChannel.onReceive].
1672
+
Ticker channel is a special rendezvous channel that produces `Unit` every time given delay passes since last consumption from this channel.
1673
+
Though it may seem to be useless standalone, it is a useful building block to create complex time-based [produce]
1674
+
pipelines and operators that do windowing and other time-dependend processing.
1675
+
Ticker channel can be used in [select] to perform "on tick" action.
1674
1676
1675
-
To create such channel, use factory method [ticker] and to indicate that no further elements are needed use [ReceiveChannel.cancel] method on it.
1677
+
To create such channel use a factory method [ticker].
1678
+
To indicate that no further elements are needed use [ReceiveChannel.cancel] method on it.
0 commit comments