MCPcopy Create free account
hub / github.com/traneio/future / flatMap

Method flatMap

future-java/src/main/java/io/trane/future/Future.java:403–403  ·  view source on GitHub ↗

Maps the result of this future to another future and flattens the result. @param f the mapping function that returns another future instance. @return a mapped and flattened future with the transformed result.

(Function<? super T, ? extends Future<R>> f)

Source from the content-addressed store, hash-verified

401 * @return a mapped and flattened future with the transformed result.
402 */
403 <R> Future<R> flatMap(Function<? super T, ? extends Future<R>> f);
404
405 /**
406 * Maps the result of this future using the provided Transformer. If this

Callers 15

flatMapMethod · 0.65
flatMapInterruptMethod · 0.65
genMethod · 0.65
flattenMethod · 0.65
tailrecLoopMethod · 0.65
tailrecLoopDelayedMethod · 0.65
nonTailrecLoopMethod · 0.65
nonTailrecLoopDelayedMethod · 0.65
flatMapMethod · 0.65
flatMapMethod · 0.65
flatMapExceptionMethod · 0.65
flatMapMethod · 0.65

Calls

no outgoing calls

Tested by 12

flatMapMethod · 0.52
flatMapInterruptMethod · 0.52
genMethod · 0.52
flattenMethod · 0.52
tailrecLoopMethod · 0.52
tailrecLoopDelayedMethod · 0.52
nonTailrecLoopMethod · 0.52
nonTailrecLoopDelayedMethod · 0.52
flatMapMethod · 0.52
flatMapMethod · 0.52
flatMapExceptionMethod · 0.52
flatMapMethod · 0.52