Searched refs:settableFuture (Results 1 – 5 of 5) sorted by relevance
156 final SettableFuture<Void> settableFuture = SettableFuture.create(); in testCancellationWithReferencedObject() local162 return settableFuture; in testCancellationWithReferencedObject()226 final SettableFuture<Void> settableFuture = SettableFuture.create();233 return settableFuture;240 settableFuture.set(null);245 final SettableFuture<Void> settableFuture = SettableFuture.create();251 return settableFuture;267 settableFuture.set(null);273 final SettableFuture<Void> settableFuture = SettableFuture.create();279 return settableFuture;[all …]
217 SettableFuture<Map<Profile, String>> settableFuture = SettableFuture.create(); in listenableFuturesCompletingOnSeparateThreads() local219 new CrossProfileCallbackMultiMerger<>(expectedResults, settableFuture::set); in listenableFuturesCompletingOnSeparateThreads()225 Map<Profile, String> results = settableFuture.get(); in listenableFuturesCompletingOnSeparateThreads()248 SettableFuture<Map<Profile, String>> settableFuture = SettableFuture.create(); in listenableFuturesCompletingWithErrorsOnSeparateThreads() local250 new CrossProfileCallbackMultiMerger<>(expectedResults, settableFuture::set); in listenableFuturesCompletingWithErrorsOnSeparateThreads()256 Map<Profile, String> results = settableFuture.get(); in listenableFuturesCompletingWithErrorsOnSeparateThreads()
246 private SettableFuture<Void> settableFuture = SettableFuture.create(); field in ShadowContextWrapperTest.FooReceiver251 settableFuture.set(null); in onReceive()
412 private SettableFuture<Void> settableFuture = SettableFuture.create(); field in ShadowContextWrapperTest.FooReceiver417 settableFuture.set(null); in onReceive()