Skip to content

Commit 6c21369

Browse files
authored
Remove outdated ExperimentalTime annotation (#4046)
1 parent 1c306c9 commit 6c21369

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

kotlinx-coroutines-core/jvm/test/flow/SharingStressTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import kotlin.test.*
1111
import kotlin.time.*
1212
import kotlin.time.TimeSource
1313

14-
@OptIn(ExperimentalTime::class)
1514
class SharingStressTest : TestBase() {
1615
private val testDuration = 1000L * stressTestMultiplier
1716
private val nSubscribers = 5

kotlinx-coroutines-test/common/src/TestCoroutineScheduler.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ public class TestCoroutineScheduler : AbstractCoroutineContextElement(TestCorout
219219
/**
220220
* Returns the [TimeSource] representation of the virtual time of this scheduler.
221221
*/
222-
@ExperimentalTime
223222
public val timeSource: TimeSource.WithComparableMarks = object : AbstractLongTimeSource(DurationUnit.MILLISECONDS) {
224223
override fun read(): Long = currentTime
225224
}

kotlinx-coroutines-test/common/src/TestScope.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ public fun TestScope.advanceTimeBy(delayTime: Duration): Unit = testScheduler.ad
131131
* @see TestCoroutineScheduler.timeSource
132132
*/
133133
@ExperimentalCoroutinesApi
134-
@ExperimentalTime
135134
public val TestScope.testTimeSource: TimeSource.WithComparableMarks get() = testScheduler.timeSource
136135

137136
/**

kotlinx-coroutines-test/common/test/TestCoroutineSchedulerTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ class TestCoroutineSchedulerTest {
310310
}
311311

312312
@Test
313-
@ExperimentalTime
314313
fun testAdvanceTimeSource() = runTest {
315314
val expected = 1.seconds
316315
val before = testTimeSource.markNow()

0 commit comments

Comments
 (0)