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

Method transform

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

Maps the result of this future using the provided Transformer. If this future completes successfully, transformer.onValue is called. If this future completes with an exception, transformer.onException is called. @param t a Transformer that applies the transformation. @return a future tranformed

(Transformer<? super T, ? extends R> t)

Source from the content-addressed store, hash-verified

411 * @return a future tranformed by the Transformer.
412 */
413 <R> Future<R> transform(Transformer<? super T, ? extends R> t);
414
415 /**
416 * Maps the result of this future using a Transformer that returns another

Callers 12

transformMethod · 0.65
transformInterruptMethod · 0.65
transformMethod · 0.65
transformExceptionMethod · 0.65
transformMethod · 0.65
transformExceptionMethod · 0.65
transformMethod · 0.65
applyMethod · 0.65
ensureConstMethod · 0.65
ensureConstNMethod · 0.65
ensurePromiseMethod · 0.65
ensurePromiseNMethod · 0.65

Calls

no outgoing calls

Tested by 7

transformMethod · 0.52
transformInterruptMethod · 0.52
transformMethod · 0.52
transformExceptionMethod · 0.52
transformMethod · 0.52
transformExceptionMethod · 0.52
transformMethod · 0.52