Home
last modified time | relevance | path

Searched refs:withTimeout (Results 1 – 25 of 68) sorted by relevance

123

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DWithTimeoutTest.kt19 val result = withTimeout(10_000) { in <lambda>()
33 val result = withTimeout(10_000) { in <lambda>()
56 val result = withTimeout(1000) { in <lambda>()
76 withTimeout(100) { in <lambda>()
89 withTimeout(100) { in <lambda>()
104 val result = withTimeout(100) { in <lambda>()
114 withTimeout(100) { in <lambda>()
131 withTimeout(100) { in <lambda>()
147 withTimeout(100) { in <lambda>()
168 withTimeout(-1) { in <lambda>()
[all …]
DWithTimeoutDurationTest.kt20 val result = withTimeout(10.seconds) { in <lambda>()
34 val result = withTimeout(10.seconds) { in <lambda>()
57 val result = withTimeout(1.seconds) { in <lambda>()
77 withTimeout(100.milliseconds) { in <lambda>()
90 withTimeout(100.milliseconds) { in <lambda>()
105 val result = withTimeout(100.milliseconds) { in <lambda>()
121 withTimeout(100.milliseconds) { in equals()
138 withTimeout(100.milliseconds) { in <lambda>()
154 withTimeout(100.milliseconds) { in <lambda>()
175 withTimeout(-1.milliseconds) { in <lambda>()
[all …]
DWithTimeoutOrNullTest.kt105 withTimeout(10) { in <lambda>()
119 withTimeout(10) { in <lambda>()
DWithTimeoutOrNullDurationTest.kt107 withTimeout(10.milliseconds) { in <lambda>()
121 withTimeout(10.milliseconds) { in <lambda>()
DBuilderContractsTest.kt36 withTimeout(Long.MAX_VALUE) { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/exceptions/
DStackTraceRecoveryWithTimeoutTest.kt26 withTimeout(200) { in outerWithTimeout()
47 withTimeout(200) { in outerChildWithTimeout()
57 withTimeout(300) { in withTimeoutInChild()
73 withTimeout(200) { in outerChild()
83 withTimeout(100) { in smallWithTimeout()
/external/kotlinx.coroutines/kotlinx-coroutines-test/test/
DTestRunBlockingTest.kt70 withTimeout(SLOW) { in <lambda>()
79 withTimeout(SLOW) { in <lambda>()
89 withTimeout(SLOW) { in <lambda>()
100 withTimeout(SLOW) { in <lambda>()
120 withTimeout(SLOW) { in <lambda>()
134 withTimeout(SLOW) { in <lambda>()
147 withTimeout(1) { in <lambda>()
162 withTimeout(SLOW) { in <lambda>()
/external/okio/okio/src/jvmMain/kotlin/okio/
DAsyncTimeout.kt99 withTimeout { sink.write(source, toWrite) } in sink()
105 withTimeout { sink.flush() } in sink()
109 withTimeout { sink.close() } in sink()
125 return withTimeout { source.read(sink, byteCount) } in source()
129 withTimeout { source.close() } in source()
142 inline fun <T> withTimeout(block: () -> T): T { in withTimeout() method in okio.AsyncTimeout
/external/kotlinx.coroutines/integration/kotlinx-coroutines-jdk8/test/time/
DDurationOverflowTest.kt48 withTimeout(duration) {} in <lambda>()
70 assertFailsWith<TimeoutCancellationException> { withTimeout(0L) {} } in <lambda>()
71 assertFailsWith<TimeoutCancellationException> { withTimeout(Duration.ZERO) {} } in <lambda>()
DWithTimeoutTest.kt17 val result = withTimeout(Duration.ofMillis(10_000)) { in <lambda>()
59 withTimeout(Duration.ofMillis(3)) { in <lambda>()
/external/guava/guava/src/com/google/common/util/concurrent/
DFluentFuture.java264 public final FluentFuture<V> withTimeout( in withTimeout() method in FluentFuture
266 return withTimeout(toNanosSaturated(timeout), TimeUnit.NANOSECONDS, scheduledExecutor); in withTimeout()
281 public final FluentFuture<V> withTimeout( in withTimeout() method in FluentFuture
283 return (FluentFuture<V>) Futures.withTimeout(this, timeout, unit, scheduledExecutor); in withTimeout()
/external/kotlinx.coroutines/kotlinx-coroutines-debug/test/
DStartModeProbesTest.kt62 withTimeout(Long.MAX_VALUE) { in withTimeoutHelper()
72 withTimeout(Long.MAX_VALUE) { in <lambda>()
83 withTimeout(Long.MAX_VALUE) { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DTimeout.kt38 public suspend fun <T> withTimeout(timeMillis: Long, block: suspend CoroutineScope.() -> T): T { in <lambda>() method
68 public suspend fun <T> withTimeout(timeout: Duration, block: suspend CoroutineScope.() -> T): T { in withTimeout() method
72 return withTimeout(timeout.toDelayMillis(), block) in withTimeout()
/external/junit/src/main/java/org/junit/rules/
DTimeout.java135 .withTimeout(timeout, timeUnit) in createFailOnTimeoutStatement()
179 public Builder withTimeout(long timeout, TimeUnit unit) { in withTimeout() method in Timeout.Builder
/external/kotlinx.coroutines/integration/kotlinx-coroutines-jdk8/src/time/
DTime.kt41 public suspend fun <T> withTimeout(duration: Duration, block: suspend CoroutineScope.() -> T): T { in delay() method
45 return kotlinx.coroutines.withTimeout(duration.coerceToMillis(), block) in delay()
/external/junit/src/main/java/org/junit/internal/runners/statements/
DFailOnTimeout.java36 this(builder().withTimeout(timeoutMillis, TimeUnit.MILLISECONDS), statement); in FailOnTimeout()
70 public Builder withTimeout(long timeout, TimeUnit unit) { in withTimeout() method in FailOnTimeout.Builder
/external/guava/android/guava/src/com/google/common/util/concurrent/
DFluentFuture.java263 public final FluentFuture<V> withTimeout( in withTimeout() method in FluentFuture
265 return (FluentFuture<V>) Futures.withTimeout(this, timeout, unit, scheduledExecutor); in withTimeout()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/guide/
Dexample-cancel-06.kt11 withTimeout(1300L) { in <lambda>()
Dexample-cancel-08.kt21 val resource = withTimeout(60) { // Timeout of 60 ms in main()
Dexample-cancel-09.kt23 withTimeout(60) { // Timeout of 60 ms in main()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DWithTimeoutChildDipspatchStressTest.kt21 val result = withTimeout(5000) { in <lambda>()
DWithTimeoutOrNullJvmTest.kt27 val value = withTimeout(1) { in <lambda>()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-jdk9/test/
DPublisherCompletionStressTest.kt25 withTimeout(5000) { in <lambda>()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx3/test/
DObservableCompletionStressTest.kt25 withTimeout(5000) { in <lambda>()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/test/
DObservableCompletionStressTest.kt25 withTimeout(5000) { in <lambda>()

123