Facility to communicate a cancellation request to a fiber. Callbacks can be registered with the abort_source
, which are called atomically with a call to request_abort().
#include <seastar/core/abort_source.hh>
◆ get_default_exception()
virtual std::exception_ptr seastar::abort_source::get_default_exception |
( |
| ) |
const |
|
inlinevirtualnoexcept |
◆ request_abort()
void seastar::abort_source::request_abort |
( |
| ) |
|
|
inlinenoexcept |
Requests that the target operation be aborted. Current subscriptions are invoked inline with this call with a disengaged optional<std::exception_ptr>, and no new ones can be registered.
◆ request_abort_ex() [1/2]
template<typename Exception >
void seastar::abort_source::request_abort_ex |
( |
Exception && |
e | ) |
|
|
inlinenoexcept |
Requests that the target operation be aborted with a given Exception
object. Current subscriptions are invoked inline with this exception, converted to std::exception_ptr, and no new ones can be registered.
◆ request_abort_ex() [2/2]
void seastar::abort_source::request_abort_ex |
( |
std::exception_ptr |
ex | ) |
|
|
inlinenoexcept |
Requests that the target operation be aborted with a given exception_ptr
. Current subscriptions are invoked inline with this exception, and no new ones can be registered.
◆ subscribe()
The documentation for this class was generated from the following file: