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

Method taskReadyToRunFuture

bolt/exec/Task.cpp:3137–3146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3135}
3136
3137ContinueFuture Task::taskReadyToRunFuture(bool doSchedule) {
3138 auto self = shared_from_this();
3139 if (!ExecutorTaskScheduler::instance().waitForScheduling(self, doSchedule)) {
3140 return ContinueFuture();
3141 }
3142 auto [promise, future] = makeBoltContinuePromiseContract(
3143 fmt::format("Task::taskReadyToRunFuture {}", taskId_));
3144 taskReadyToRunPromises_.emplace_back(std::move(promise));
3145 return std::move(future);
3146}
3147
3148void Task::notifyReadyToRun() {
3149 EventCompletionNotifier readyToRunNotifier;

Callers 1

createMethod · 0.80

Calls 2

waitForSchedulingMethod · 0.80

Tested by

no test coverage detected