Hi,
Yes, it should be fine.
https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/lang/IgniteFuture.html#listen-org.apache.ignite.lang.IgniteInClosure-
BR,
Andrei
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Let's assume I need to update an item in a cache and then invoke
commitAsync(). Is the following a valid code pattern?
Transaction transaction = ignite.transactions().txStart();
cache.putAsync(key, value); // this
cache.put(key, value); // or this
transaction.commitAsync().listen(fut -> /* respo