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

Method schedule

bolt/exec/PushBasedEvent.cpp:20–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace bytedance::bolt::exec {
19
20bool PushBasedEvent::schedule(
21 const std::shared_ptr<LocalExchangeQueue>& inputQueue,
22 int partition,
23 bool isLast) {
24 if (isLast) {
25 if (!finish(isLast)) {
26 return false;
27 }
28 }
29 create_consuming_driver_callback_(inputQueue, partition, isLast);
30 return true;
31}
32
33bool PushBasedEvent::finish(bool isLast) {
34 bool expected = false;

Callers 3

enqueueMethod · 0.80
noMoreDataMethod · 0.80
abortMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected