- Sort Score
- Result 10 results
- Languages All
Results 41 - 49 of 49 for IsCancelled (0.22 sec)
-
guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java
} @Override public V get(long timeout, TimeUnit unit) { throw new AssertionFailedError(); } @Override public boolean isCancelled() { throw new AssertionFailedError(); } @Override public boolean isDone() { /* * If isDone is true during the call to listenInPoolThread,
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Feb 09 22:57:07 GMT 2022 - 9.7K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/FluentFuture.java
return super.get(timeout, unit); } @Override public final boolean isDone() { return super.isDone(); } @Override public final boolean isCancelled() { return super.isCancelled(); } @Override public final void addListener(Runnable listener, Executor executor) { super.addListener(listener, executor); } @CanIgnoreReturnValue
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Apr 11 19:08:44 GMT 2023 - 18.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java
results.add(serializer.submit(Callables.returning(null), directExecutor())); } manualExecutorTask[0].run(); for (Future<?> result : results) { if (!result.isCancelled()) { result.get(10, SECONDS); } // TODO(cpovirk): Verify that the cancelled futures are exactly ones that we expect. } assertThat(logHandler.getStoredLogRecords()).isEmpty(); }
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 16.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java
results.add(serializer.submit(Callables.returning(null), directExecutor())); } manualExecutorTask[0].run(); for (Future<?> result : results) { if (!result.isCancelled()) { result.get(10, SECONDS); } // TODO(cpovirk): Verify that the cancelled futures are exactly ones that we expect. } assertThat(logHandler.getStoredLogRecords()).isEmpty(); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 16.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java
NullService service = new NullService(); service.startAsync().awaitRunning(); assertFalse(future.isDone()); service.stopAsync().awaitTerminated(); assertTrue(future.isCancelled()); } private class NullService extends AbstractScheduledService { @Override protected void runOneIteration() throws Exception {} @Override protected Scheduler scheduler() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 22.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java
NullService service = new NullService(); service.startAsync().awaitRunning(); assertFalse(future.isDone()); service.stopAsync().awaitTerminated(); assertTrue(future.isCancelled()); } private class NullService extends AbstractScheduledService { @Override protected void runOneIteration() throws Exception {} @Override protected Scheduler scheduler() {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 22.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 59.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java
// a future that eventually came from immediateFuture(null), this doesn't leak // throwables or completion values. newFuture.setFuture(oldFuture); } else if (outputFuture.isCancelled() && taskExecutor.trySetCancelled()) { // If this CAS succeeds, we know that the provided callable will never be invoked, // so when oldFuture completes it is safe to allow the next submitted task to
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 01 21:46:34 GMT 2024 - 22.1K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental.cc
tensorflow::unwrap(cancellation_manager)->StartCancel(); } bool TFE_CancellationManagerIsCancelled( TFE_CancellationManager* cancellation_manager) { return tensorflow::unwrap(cancellation_manager)->IsCancelled(); } bool TFE_CancellationManagerIsCancelling( TFE_CancellationManager* cancellation_manager) { return tensorflow::unwrap(cancellation_manager)->IsCancelling(); }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Apr 11 23:52:39 GMT 2024 - 35.9K bytes - Viewed (3)