AsyncOperation.ResultConsumer<T> Interface

Type Parameters

T

First argument type

public interface ResultConsumer

Represents an action to be invoked after an AsyncOperation is done. Notably, this functional interface is used when only a single argument is needed like with AsyncOperation.thenAccept.

This is a functional interface equivalent to android's Consumer interface

Method Summary

Modifier and Type Method and Description
void accept(T t)

Performs the operation on the given argument

Method Details

accept

public void accept(T t)

Performs the operation on the given argument

Parameters:

t - Input argument to the consumer

Applies to