- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for toNanosSaturated (0.1 sec)
-
guava/src/com/google/common/util/concurrent/ListeningScheduledExecutorService.java
*/ @J2ktIncompatible default ListenableScheduledFuture<?> scheduleAtFixedRate( Runnable command, Duration initialDelay, Duration period) { return scheduleAtFixedRate( command, toNanosSaturated(initialDelay), toNanosSaturated(period), TimeUnit.NANOSECONDS); } /** * @since 15.0 (previously returned ScheduledFuture) */ @Override ListenableScheduledFuture<?> scheduleWithFixedDelay(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Feb 11 17:30:04 UTC 2025 - 3.6K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/ListeningExecutorService.java
return invokeAny(tasks, toNanosSaturated(timeout), TimeUnit.NANOSECONDS); } /** * Duration-based overload of {@link #awaitTermination(long, TimeUnit)}. * * @since 32.1.0 */ @J2ktIncompatible default boolean awaitTermination(Duration timeout) throws InterruptedException { return awaitTermination(toNanosSaturated(timeout), TimeUnit.NANOSECONDS); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 5.5K bytes - Viewed (0) -
guava/src/com/google/common/base/Internal.java
*/ // We use this method only for cases in which we need to decompose to primitives. @SuppressWarnings({"GoodTime-ApiWithNumericTimeUnit", "GoodTime-DecomposeToPrimitive"}) @IgnoreJRERequirement static long toNanosSaturated(Duration duration) { // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for // durations longer than approximately +/- 292 years). try { return duration.toNanos();Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 15:16:19 UTC 2025 - 1.9K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Internal.java
* {@link Long#MAX_VALUE} or {@link Long#MIN_VALUE}. This behavior can be useful when decomposing * a duration in order to call a legacy API which requires a {@code long, TimeUnit} pair. */ static long toNanosSaturated(Duration duration) { // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for // durations longer than approximately +/- 292 years). try { return duration.toNanos();Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 1.7K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Internal.java
*/ // We use this method only for cases in which we need to decompose to primitives. @SuppressWarnings({"GoodTime-ApiWithNumericTimeUnit", "GoodTime-DecomposeToPrimitive"}) @IgnoreJRERequirement static long toNanosSaturated(Duration duration) { // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for // durations longer than approximately +/- 292 years). try { return duration.toNanos();Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 15:16:19 UTC 2025 - 1.9K bytes - Viewed (0)