Hi, 

Since my server function need to deal with a large amount of data, I hope 
that the server can work on dealing with these data when there is no client 
calls. Therefore,  when the client call arrives, the server can return the 
already dealt results to the client which will be much more efficient. 

That means the server does work like this: 
```cpp
//server.cpp
ServerBuilder builder; 
builder.AddListeningPort();
builder.RegisterService();
std::unique_ptr<grpc::Server> server(builder.BuildAndStart);
server->Wait(); // here the server blocks and wait for client calls. I need 
the server to execute the data dealing program when there is no client calls
```

I hope that when there is no client calls, the server can still execute 
some codo rather than get blocked and only wait for the client. 

How could I do this please ?

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/1e9b5056-d974-4361-ba61-e871e1cf50a2%40googlegroups.com.

Reply via email to