File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
kotlinx-coroutines-core/common/src
ui/kotlinx-coroutines-javafx/src Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,12 @@ import kotlin.time.*
19
19
*/
20
20
@InternalCoroutinesApi
21
21
public interface Delay {
22
- /* *
23
- * Delays coroutine for a given time without blocking a thread and resumes it after a specified time.
24
- *
25
- * This suspending function is cancellable.
26
- * If the [Job] of the current coroutine is cancelled or completed while this suspending function is waiting, this function
27
- * immediately resumes with [CancellationException].
28
- * There is a **prompt cancellation guarantee**. If the job was cancelled while this function was
29
- * suspended, it will not resume successfully. See [suspendCancellableCoroutine] documentation for low-level details.
30
- */
22
+
23
+ /* * @suppress **/
24
+ @Deprecated(
25
+ message = " Deprecated without replacement as an internal method never intended for public use" ,
26
+ level = DeprecationLevel .ERROR
27
+ ) // Error since 1.6.0
31
28
public suspend fun delay (time : Long ) {
32
29
if (time <= 0 ) return // don't delay
33
30
return suspendCancellableCoroutine { scheduleResumeAfterDelay(time, it) }
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import javafx.event.*
10
10
import javafx.util.*
11
11
import kotlinx.coroutines.*
12
12
import kotlinx.coroutines.internal.*
13
- import kotlinx.coroutines.javafx.JavaFx.delay
14
13
import java.lang.UnsupportedOperationException
15
14
import java.lang.reflect.*
16
15
import java.util.concurrent.*
You can’t perform that action at this time.
0 commit comments