userver: server::request::DeadlinePropagationBlocker Class Reference
Loading...
Searching...
No Matches
server::request::DeadlinePropagationBlocker Class Referencefinal

Stops deadline propagation within its scope. More...

#include <userver/server/request/task_inherited_data.hpp>

Public Member Functions

 DeadlinePropagationBlocker (DeadlinePropagationBlocker &&)=delete
 
DeadlinePropagationBlockeroperator= (DeadlinePropagationBlocker &&)=delete
 

Detailed Description

Stops deadline propagation within its scope.

By default, handler deadline is honored in requests created directly from the handler task, as well as from its child tasks. However, some requests need to be completed regardless of whether the initial request timed out, because they are needed for something other than forming the upstream response.

Deadline propagation is automatically blocked in tasks launched using:

See also
concurrent::BackgroundTaskStorage::AsyncDetach
utils::AsyncBackground
concurrent::BackgroundTaskStorage::AsyncDetach does it by default.

Definition at line 72 of file task_inherited_data.hpp.


The documentation for this class was generated from the following file: