MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / Process

Method Process

oneflow/core/control/ctrl_call.h:56–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 void set_request_handler(std::function<void()> val) { request_handler_ = val; }
55
56 void Process() override {
57 switch (status_) {
58 case Status::kBeforeHandleRequest: {
59 request_handler_();
60 return;
61 }
62 case Status::kBeforeDelete: {
63 delete this;
64 return;
65 }
66 }
67 }
68
69 void SendResponse() override {
70 responder_.Finish(response_, grpc::Status::OK, this);

Callers 6

__init__Method · 0.80
start_processesFunction · 0.80
_repopulate_poolMethod · 0.80
HandleRpcsMethod · 0.80

Calls

no outgoing calls