MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / OnCompleted

Method OnCompleted

tensorflow/core/distributed_runtime/rpc/grpc_state.cc:38–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 : streaming_state_(streaming_state), type_(type) {}
37
38void UntypedStreamingRPCState::Tag::OnCompleted(bool ok) {
39 switch (type_) {
40 case TagType::kCallStarted:
41 streaming_state_->CallStarted(ok);
42 break;
43 case TagType::kRequestWriteCompleted:
44 streaming_state_->RequestWriteCompleted(ok);
45 break;
46 case TagType::kResponseReadCommpleted:
47 streaming_state_->ResponseReadCompleted(ok);
48 break;
49 case TagType::kCallFinished:
50 streaming_state_->CallFinished(ok);
51 break;
52 }
53 streaming_state_->Unref(); // Ref acquired when tag was handed to grpc.
54}
55
56void Exchange::Complete(Status status) {
57 if (status.ok()) {

Callers 8

HandleRPCsLoopMethod · 0.45
HandleRPCsLoopMethod · 0.45
GrpcWorkerCacheThreadMethod · 0.45
GrpcRPCFactoryMethod · 0.45
HandleRPCsLoopMethod · 0.45
HandleRPCsLoopMethod · 0.45
GrpcEagerClientThreadMethod · 0.45

Calls 5

RequestWriteCompletedMethod · 0.80
ResponseReadCompletedMethod · 0.80
CallFinishedMethod · 0.80
CallStartedMethod · 0.45
UnrefMethod · 0.45

Tested by

no test coverage detected