| 43 | } |
| 44 | |
| 45 | void JoinBridge::cancel() { |
| 46 | std::vector<ContinuePromise> promises; |
| 47 | { |
| 48 | std::lock_guard<std::mutex> l(mutex_); |
| 49 | cancelled_ = true; |
| 50 | promises = std::move(promises_); |
| 51 | } |
| 52 | notify(std::move(promises)); |
| 53 | } |
| 54 | |
| 55 | } // namespace bytedance::bolt::exec |