summaryrefslogtreecommitdiff
path: root/opendc-common/src/main/kotlin/org/opendc/common/util/TimerScheduler.kt
diff options
context:
space:
mode:
Diffstat (limited to 'opendc-common/src/main/kotlin/org/opendc/common/util/TimerScheduler.kt')
-rw-r--r--opendc-common/src/main/kotlin/org/opendc/common/util/TimerScheduler.kt8
1 files changed, 5 insertions, 3 deletions
diff --git a/opendc-common/src/main/kotlin/org/opendc/common/util/TimerScheduler.kt b/opendc-common/src/main/kotlin/org/opendc/common/util/TimerScheduler.kt
index bec2c9f1..44d6010f 100644
--- a/opendc-common/src/main/kotlin/org/opendc/common/util/TimerScheduler.kt
+++ b/opendc-common/src/main/kotlin/org/opendc/common/util/TimerScheduler.kt
@@ -22,9 +22,12 @@
package org.opendc.common.util
-import kotlinx.coroutines.*
+import kotlinx.coroutines.Delay
+import kotlinx.coroutines.DisposableHandle
+import kotlinx.coroutines.InternalCoroutinesApi
import java.time.Clock
-import java.util.*
+import java.util.ArrayDeque
+import java.util.PriorityQueue
import kotlin.coroutines.ContinuationInterceptor
import kotlin.coroutines.CoroutineContext
@@ -34,7 +37,6 @@ import kotlin.coroutines.CoroutineContext
* @param context The [CoroutineContext] to run the tasks with.
* @param clock The clock to keep track of the time.
*/
-@OptIn(ExperimentalCoroutinesApi::class)
public class TimerScheduler<T>(private val context: CoroutineContext, private val clock: Clock) {
/**
* The [Delay] instance that provides scheduled execution of [Runnable]s.