bsl::stop_token::stop_token

Create a stop_token by moving from original.

Synopsis

Declared in <bslstl_stoptoken.h>

stop_token(BloombergLP::bslmf::MovableRef<stop_token> original) noexcept;

Description

Create a stop_token object that refers to the same stop state (or lack thereof) as the specified original object, and reset original to not refer to a stop state.

Parameters

NameDescription
originalsource token that is moved from