Searched refs:setFuture (Results 1 – 6 of 6) sorted by relevance
51 assertFalse(future.setFuture(SettableFuture.<Integer>create())); in testSetValue()66 assertFalse(future.setFuture(SettableFuture.create())); in testSetException()81 assertTrue(future.setFuture(nested)); in testSetFuture()86 assertFalse(future.setFuture(SettableFuture.<String>create())); in testSetFuture()103 assertTrue(future.setFuture(nested)); in testSetFuture_genericsHierarchy()108 assertFalse(future.setFuture(SettableFuture.<Foo>create())); in testSetFuture_genericsHierarchy()126 async.setFuture(inner); in testCancel_innerCancelsAsync()138 async.setFuture(inner); in testCancel_resultCancelsInner_interrupted()151 async.setFuture(inner); in testCancel_resultCancelsInner()172 assertFalse(async.setFuture(inner)); in testCancel_multipleBeforeSetFuture_noInterruptFirst()[all …]
57 public boolean setFuture(ListenableFuture<? extends V> future) { in setFuture() method in AsyncSettableFuture58 return nested.setFuture(checkNotNull(future)); in setFuture()67 return setFuture(Futures.immediateFuture(value)); in setValue()76 return setFuture(Futures.<V>immediateFailedFuture(exception)); in setException()92 boolean setFuture(ListenableFuture<? extends V> value) { in setFuture() method in AsyncSettableFuture.NestedFuture
1199 delegates.remove().setFuture(future);
82 ListenableFuture<Set<String>> setFuture = Producers.createFutureSingletonSet(future); in createFutureSingletonSet_success() local83 assertThat(setFuture.isDone()).isTrue(); in createFutureSingletonSet_success()84 assertThat(setFuture.get()).containsExactly("monkey"); in createFutureSingletonSet_success()89 ListenableFuture<Set<String>> setFuture = Producers.createFutureSingletonSet(future); in createFutureSingletonSet_failure() local90 assertThat(setFuture.isDone()).isTrue(); in createFutureSingletonSet_failure()92 setFuture.get(); in createFutureSingletonSet_failure()
131 return setFuture(true); in inFuture()140 return setFuture(false); in inPast()151 return setFuture(future); in inFuture()162 return setFuture(!past); in inPast()349 private Period setFuture(boolean future) { in setFuture() method in Period
129 return setFuture(true); in inFuture()138 return setFuture(false); in inPast()149 return setFuture(future); in inFuture()160 return setFuture(!past); in inPast()347 private Period setFuture(boolean future) { in setFuture() method in Period