Posted by nkiesel:
This would allow for a much more fluent:
try (Transaction txn = dgraphClient.newTransaction()) {
...
txn.commit();
}
Posted by nkiesel:
This would allow for a much more fluent:
try (Transaction txn = dgraphClient.newTransaction()) {
...
txn.commit();
}
deepakjois commented :
I did not know about AutoCloseable
: AutoCloseable (Java Platform SE 8 )
It is probably worth doing.