#include "tensorstore/util/executor.h"
type tensorstore::Executor;

Function object that is callable with nullary noexcept functions.

Any ExecutorTask with which the executor is called must either be invoked immediately (inline) or in another thread.

The return value of the ExecutorTask is ignored.

using tensorstore::ExecutorTask = absl::AnyInvocable<void() &&>;

Type-erased nullary function type that supports move construction.

class tensorstore::InlineExecutor;

Executor that simply executes functions immediately in the current thread.

class tensorstore::ExecutorBoundFunction<ExecutorType, FunctionType>;

Function object that invokes a given function using a given executor. Any arguments are forwarded to the contained function.

ExecutorBoundFunction<std::remove_cvref_t<Executor>,
                     
 std::remove_cvref_t<Function>>
tensorstore::WithExecutor(Executor&executorFunction&function);
Function&&
tensorstore::WithExecutor(Executor&executorFunction&function);

Returns an instance of ExecutorBoundFunction that invokes the given function function in the specified executor.