| 79 | StopToken StopSource::token() { return StopToken(impl_); } |
| 80 | |
| 81 | bool StopToken::IsStopRequested() const { |
| 82 | if (!impl_) { |
| 83 | return false; |
| 84 | } |
| 85 | return impl_->requested_.load() != 0; |
| 86 | } |
| 87 | |
| 88 | Status StopToken::Poll() const { |
| 89 | if (!impl_) { |