Activates the notifier and provides a callback to invoke and promises to satisfy on destruction or a call to 'notify'.
| 76 | // Activates the notifier and provides a callback to invoke and promises to |
| 77 | // satisfy on destruction or a call to 'notify'. |
| 78 | void activate( |
| 79 | std::vector<ContinuePromise> promises, |
| 80 | std::function<void()> callback = nullptr) { |
| 81 | active_ = true; |
| 82 | callback_ = callback; |
| 83 | promises_ = std::move(promises); |
| 84 | } |
| 85 | |
| 86 | // Satisfies the promises passed to 'activate' and invokes the callback. |
| 87 | // Does nothing if 'activate' hasn't been called or 'notify' has been |
no outgoing calls
no test coverage detected