blob: 771871f379bc8cebc7c961e9e462a114df206c3e [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.base;
/**
* A simple single-argument callback to handle the result of a computation.
*
* @param <T> The type of the computation's result.
*/
public interface Callback<T> {
/**
* Invoked with the result of a computation.
*/
public void onResult(T result);
}