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

Method ensure

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

Runs r when this future completes. @param r the Runnable to be executed. @return a future that completes with the result of this after r is executed.

(Runnable r)

Source from the content-addressed store, hash-verified

453 * executed.
454 */
455 Future<T> ensure(Runnable r);
456
457 /**
458 * Executes the Consumer if this future completes successfully.

Callers 15

ensureMethod · 0.65
ensureExceptionMethod · 0.65
applyWithLocalMethod · 0.65
applyHandlerWithLocalMethod · 0.65
ensureMethod · 0.65
ensureInterruptMethod · 0.65
genMethod · 0.65
ensureMethod · 0.65
applyMethod · 0.65
ensureConstMethod · 0.65

Calls

no outgoing calls

Tested by 10

ensureMethod · 0.52
ensureExceptionMethod · 0.52
applyWithLocalMethod · 0.52
applyHandlerWithLocalMethod · 0.52
ensureMethod · 0.52
ensureInterruptMethod · 0.52
genMethod · 0.52
ensureMethod · 0.52