userver: userver/engine/async.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
async.hpp File Reference

TaskWithResult creation helpers. More...

+ Include dependency graph for async.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  engine
 Asynchronous engine primitives.
 

Functions

template<typename Function , typename... Args>
auto engine::AsyncNoSpan (TaskProcessor &task_processor, Function &&f, Args &&... args)
 Runs an asynchronous function call using specified task processor.
 
template<typename Function , typename... Args>
auto engine::SharedAsyncNoSpan (TaskProcessor &task_processor, Function &&f, Args &&... args)
 Runs an asynchronous function call using specified task processor.
 
template<typename Function , typename... Args>
auto engine::AsyncNoSpan (TaskProcessor &task_processor, Deadline deadline, Function &&f, Args &&... args)
 
template<typename Function , typename... Args>
auto engine::SharedAsyncNoSpan (TaskProcessor &task_processor, Deadline deadline, Function &&f, Args &&... args)
 
template<typename Function , typename... Args>
auto engine::AsyncNoSpan (Function &&f, Args &&... args)
 Runs an asynchronous function call using task processor of the caller.
 
template<typename Function , typename... Args>
auto engine::SharedAsyncNoSpan (Function &&f, Args &&... args)
 Runs an asynchronous function call using task processor of the caller.
 
template<typename Function , typename... Args>
auto engine::AsyncNoSpan (Deadline deadline, Function &&f, Args &&... args)
 
template<typename Function , typename... Args>
auto engine::SharedAsyncNoSpan (Deadline deadline, Function &&f, Args &&... args)
 
template<typename Function , typename... Args>
auto engine::CriticalAsyncNoSpan (TaskProcessor &task_processor, Function &&f, Args &&... args)
 Runs an asynchronous function call that will start regardless of cancellations using specified task processor.
 
template<typename Function , typename... Args>
auto engine::SharedCriticalAsyncNoSpan (TaskProcessor &task_processor, Function &&f, Args &&... args)
 Runs an asynchronous function call that will start regardless of cancellations using specified task processor.
 
template<typename Function , typename... Args>
auto engine::CriticalAsyncNoSpan (Function &&f, Args &&... args)
 Runs an asynchronous function call that will start regardless of cancellations using task processor of the caller.
 
template<typename Function , typename... Args>
auto engine::SharedCriticalAsyncNoSpan (Function &&f, Args &&... args)
 Runs an asynchronous function call that will start regardless of cancellations using task processor of the caller.
 
template<typename Function , typename... Args>
auto engine::CriticalAsyncNoSpan (Deadline deadline, Function &&f, Args &&... args)
 Runs an asynchronous function call that will start regardless of cancellations, using task processor of the caller, with deadline.
 

Detailed Description

TaskWithResult creation helpers.

Definition in file async.hpp.