News for hackers. Stuff that matters.
Re:V8 adds support for top-level await by candu on Wednesday September 25, 2019 @08:58AM (#21070288)
Don't have separate get / set functions?

    async function changeBalance(account, amt) {
        /* 
         * BEGIN;
         *
         * UPDATE accounts
         * SET balance = balance - amt
         * WHERE id = ${id};
         *
         * COMMIT;
         */
    }
Of course, this is just a mutex in database transaction clothing :)

There are no comments on this comment yet.