-
#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.
Related Types¶
- 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.
Related Functions¶
-
ExecutorBoundFunction<std::remove_cvref_t<Executor>,
std::remove_cvref_t<Function>>
tensorstore::WithExecutor(Executor&& executor, Function&& function); -
Function&&
tensorstore::WithExecutor(Executor&& executor, Function&& function); Returns an instance of
ExecutorBoundFunction
that invokes the given functionfunction
in the specified executor.