flush method
Commits all writes that have been enqueued up to this point in parallel.
Returns a Promise that resolves when all currently queued operations have been committed. The Promise will never be rejected since the results for each individual operation are conveyed via their individual Promises.
The Promise resolves immediately if there are no pending writes.
Otherwise, the Promise waits for all previously issued writes, but it
does not wait for writes that were added after the method is called. If
you want to wait for additional writes, call flush()
again.
@return A promise that resolves when all enqueued writes up to this point have been committed.
Implementation
external JSPromise flush();