Registry / utility / listenablefuture

listenablefuture

JSON →
library9999.0-empty-to-avoid-conflict-with-guavajavamavenunverified

An empty artifact that signals Guava provides ListenableFuture, with a separate version containing the class for standalone use.

<dependency> <groupId>com.google.guava</groupId> <artifactId>listenablefuture</artifactId> <version>9999.0-empty-to-avoid-conflict-with-guava</version> </dependency>
INSTALL
IMPORT
SIG · LISTENABLEFUTURE
L
listenablefuture
utilityjavav9999.0-empty-to-avoid-conflict-with-guava
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ListenableFuture
com.google.common.util.concurrent.ListenableFuture

Creates and listens to a ListenableFuture.

import com.google.common.util.concurrent.ListenableFuture; import com.google.common.util.concurrent.Futures; import java.util.concurrent.Executors; public class ListenableFutureExample { public static void main(String[] args) { ListenableFuture<String> future = Futures.immediateFuture("Hello"); future.addListener(() -> System.out.println("Done"), Executors.newSingleThreadExecutor()); } }
Debug
Known issues
gotchaVersion 9999.0-empty-to-avoid-conflict-with-guava is empty; use version 1.0 for standalone usage.
fix
Use com.google.guava:listenablefuture:1.0 if you need the class without Guava.
affects: 9999.0-empty-to-avoid-conflict-with-guava
Upgrade
Version history
9999.0-empty-to-avoid-conflict-with-guavalatest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
listenablefuture — mvn dependency:get listenablefuture · libregistry