async-another-try
Simon Holthausen 2 days ago
parent 54d8c3d843
commit 48100417b5
No known key found for this signature in database

@ -1554,21 +1554,19 @@ export function fork(fn) {
e.fork_timing();
}
flushSync();
var committed = false;
/** @type {Promise<void>} */
var settled;
/** @type {Batch} */
var batch;
var batch = Batch.ensure();
batch.is_fork = true;
flushSync(() => {
batch = Batch.ensure();
batch.is_fork = true;
batch_values = new Map();
wv_values = new Map();
settled = batch.settled();
batch_values = new Map();
wv_values = new Map();
fn();
});
var settled = batch.settled();
fn();
flushSync();
return {
commit: async () => {

Loading…
Cancel
Save