Hi Alex,

This currently isn't well-supported. gRPC does some asynchronous work in 
the background even after all application-owned objects have been 
destroyed. Today, there is no way for an application to wait for gRPC to be 
shut down. Some work needs to be done internally to support a 
wait-for-shutdown API, and some of that work is being done today.

Your best way forward is to leave gRPC loaded until your process exits.

Best,
-aj
On Tuesday, December 17, 2024 at 7:17:47 AM UTC-8 Alexander wrote:

> Hi!
>
> Some questions came up from do not start threads while shutting down by 
> Spacy-Creator · Pull Request #38205 · grpc/grpc · GitHub 
> <https://github.com/grpc/grpc/pull/38205>
>
> *Some questions arise here for me, would be really great if you could 
> answer it: Is it supported that we load and initialize grpc after and in a 
> dll, but do not unload it (so it is loaded until the end of the 
> application). And is it safe that there won't be any "referenced" leaks or 
> access violations on objects from grpc after other things got unloaded at 
> the very end of the application? -> Because we don't have a way to say to 
> grpc that we now want to end.*
>
> And what is the best way to handle this in general?
>
> thx,
> Alex
>

-- 
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 grpc-io+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/grpc-io/dc2aa407-5293-4bd6-aaf2-250601a3b054n%40googlegroups.com.

Reply via email to