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

Class Ensure

future-java/src/main/java/io/trane/future/Promise.java:611–622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609 }
610
611 private static class Ensure<T> extends Continuation<T, T> {
612 private final Runnable f;
613
614 public Ensure(final Runnable f) {
615 this.f = f;
616 }
617
618 @Override
619 final Future<T> apply(final Future<T> result) {
620 return result.ensure(f);
621 }
622 }
623
624 @Override
625 public final Future<T> ensure(final Runnable f) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…