Java gRPC client - How to close a DamlLedgerClient properly?
- jaypeedaOP
Hi team,
What is the good approach to close properly a DamlLedgerClient object in Java application ?
Best regards,
Jean-Paul - stefanobaghino-da 1
Using the
.close()method should be the right way to do it, possibly in afinallyblock. UnfortunatelyDamlLedgerClientdoesn’t implement neitherCloseablenorAutocloseablebut if you prefer to use Java’stry-with-resources statement you can add a wrapper around it. - jaypeeda
Noted with thanks !