userver: userver/engine/run_standalone.hpp File Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
run_standalone.hpp File Reference

Your opinion will help to improve our service

Leave a feedback >

Detailed Description

Runs a payload in a temporary coroutine engine instance.

Definition in file run_standalone.hpp.

Go to the source code of this file.

#include <cstddef>
#include <string>
#include <userver/utils/function_ref.hpp>

Classes

struct  engine::TaskProcessorPoolsConfig
 A lightweight TaskProcessor config for engine::RunStandalone. More...
 

Namespaces

namespace  engine
 Asynchronous engine primitives.
 

Functions

void engine::RunStandalone (utils::function_ref< void()> payload)
 Runs a payload in a temporary coroutine engine instance.
 
void engine::RunStandalone (std::size_t worker_threads, utils::function_ref< void()> payload)
 
void engine::RunStandalone (std::size_t worker_threads, const TaskProcessorPoolsConfig &config, utils::function_ref< void()> payload)