Lines Matching refs:action

140      * classes for each kind of action, grouped into single-input
162 * action is triggerable, and then either runs the action or
179 * not async and x is already complete, the action is run
186 * shared so that at most one performs the action. The
196 * atomically pops each dependent action, and tries to trigger it
440 * Performs completion action if triggered, returning a
518 CompletableFuture<T> src; // source for action
526 * Returns true if action can be run. Call only when known to
529 * later call to tryFire will run action.
1038 /** A Completion for an action with two sources */
1041 CompletableFuture<U> snd; // second source for action
1862 * it runs the given action.
1864 * @param runnable the action to run before completing the
1875 * action.
1877 * @param runnable the action to run before completing the
2022 public CompletableFuture<Void> thenAccept(Consumer<? super T> action) {
2023 return uniAcceptStage(null, action);
2026 public CompletableFuture<Void> thenAcceptAsync(Consumer<? super T> action) {
2027 return uniAcceptStage(defaultExecutor(), action);
2030 public CompletableFuture<Void> thenAcceptAsync(Consumer<? super T> action,
2032 return uniAcceptStage(screenExecutor(executor), action);
2035 public CompletableFuture<Void> thenRun(Runnable action) {
2036 return uniRunStage(null, action);
2039 public CompletableFuture<Void> thenRunAsync(Runnable action) {
2040 return uniRunStage(defaultExecutor(), action);
2043 public CompletableFuture<Void> thenRunAsync(Runnable action,
2045 return uniRunStage(screenExecutor(executor), action);
2068 BiConsumer<? super T, ? super U> action) {
2069 return biAcceptStage(null, other, action);
2074 BiConsumer<? super T, ? super U> action) {
2075 return biAcceptStage(defaultExecutor(), other, action);
2080 BiConsumer<? super T, ? super U> action, Executor executor) {
2081 return biAcceptStage(screenExecutor(executor), other, action);
2085 Runnable action) {
2086 return biRunStage(null, other, action);
2090 Runnable action) {
2091 return biRunStage(defaultExecutor(), other, action);
2095 Runnable action,
2097 return biRunStage(screenExecutor(executor), other, action);
2117 CompletionStage<? extends T> other, Consumer<? super T> action) {
2118 return orAcceptStage(null, other, action);
2122 CompletionStage<? extends T> other, Consumer<? super T> action) {
2123 return orAcceptStage(defaultExecutor(), other, action);
2127 CompletionStage<? extends T> other, Consumer<? super T> action,
2129 return orAcceptStage(screenExecutor(executor), other, action);
2133 Runnable action) {
2134 return orRunStage(null, other, action);
2138 Runnable action) {
2139 return orRunStage(defaultExecutor(), other, action);
2143 Runnable action,
2145 return orRunStage(screenExecutor(executor), other, action);
2165 BiConsumer<? super T, ? super Throwable> action) {
2166 return uniWhenCompleteStage(null, action);
2170 BiConsumer<? super T, ? super Throwable> action) {
2171 return uniWhenCompleteStage(defaultExecutor(), action);
2175 BiConsumer<? super T, ? super Throwable> action, Executor executor) {
2176 return uniWhenCompleteStage(screenExecutor(executor), action);
2314 * CompletionStage action.
2691 final Runnable action;
2692 TaskSubmitter(Executor executor, Runnable action) {
2694 this.action = action;
2696 public void run() { executor.execute(action); }