MCPcopy Create free account
hub / github.com/bytedance/bolt / activate

Method activate

bolt/exec/Task.cpp:78–84  ·  view source on GitHub ↗

Activates the notifier and provides a callback to invoke and promises to satisfy on destruction or a call to 'notify'.

Source from the content-addressed store, hash-verified

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

Callers 4

removeDriverMethod · 0.80
noMoreSplitsForGroupMethod · 0.80
terminateMethod · 0.80
notifyReadyToRunMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected