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

Method touch

bolt/exec/tests/AsyncConnectorTest.cpp:70–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 }
69
70 ContinueFuture touch() {
71 if (delayMs_ == 0) {
72 return ContinueFuture::makeEmpty();
73 }
74
75 auto [promise, future] = makeBoltContinuePromiseContract();
76
77 promise_ = std::move(promise);
78 scheduler_.addFunction(
79 [&]() { promise_.setValue(); }, std::chrono::milliseconds(delayMs_));
80
81 return std::move(future);
82 }
83
84 private:
85 const uint32_t delayMs_;

Callers 1

addSplitMethod · 0.45

Calls 3

addFunctionMethod · 0.80
setValueMethod · 0.45

Tested by

no test coverage detected