A pending write that is both awaitable and chainable with .force().
The write is already scheduled by the time you hold one of these (see KeyProxy.set =>
eager). Awaiting it waits for the queued write (or the driver write, when the collector is off);
calling .force() skips the collector and writes to the driver immediately.
Example
// queued — the write is buffered the moment set() is called; await just waits for that awaitdb.schema('economy').table('balances').key('user_1').set({ coins:100 });
// immediate — resolves only once the DB has actually written it awaitdb.schema('economy').table('balances').key('user_1').set({ coins:100 }).force();
Type Parameters
T
Resolved value type (always void for the current write operations).
A pending write that is both awaitable and chainable with
.force().The write is already scheduled by the time you hold one of these (see KeyProxy.set => eager). Awaiting it waits for the queued write (or the driver write, when the collector is off); calling
.force()skips the collector and writes to the driver immediately.Example