public interface AsyncFunction<I,O>
Futures.transform(ListenableFuture, AsyncFunction)
.Modifier and Type | Method and Description |
---|---|
ListenableFuture<O> |
apply(I input)
Returns an output
Future to use in place of the given input . |
ListenableFuture<O> apply(I input) throws Exception
Future
to use in place of the given input
. The output Future
need not be done, making AsyncFunction
suitable for asynchronous derivations.
Throwing an exception from this method is equivalent to returning a
failing Future
.
Exception
Copyright © 2010-2014. All Rights Reserved.
Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.
Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.
TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.