3 ms·
Maybe I'm crazy, but I never see atomic libraries that are called like this: bank_account2.deposit(amount) bank_account1.deposit(amount) Isn't this ki
by matt_wulfeck 10y ago
Maybe I'm crazy, but I never see atomic libraries that are called like this:
bank_account2.deposit(amount)
bank_account1.deposit(amount)
Isn't this kind of thing always called in some atomic batch operation?
transact.batch([
account[a] = -8,
account[b] = 8
]).submit()
- JoachimSchipper 10y agoYes; "with atomic...:" seems to be pseudo-syntax.