async-another-try
Simon Holthausen 3 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(); e.fork_timing();
} }
flushSync();
var committed = false; var committed = false;
/** @type {Promise<void>} */ var batch = Batch.ensure();
var settled; batch.is_fork = true;
/** @type {Batch} */
var batch;
flushSync(() => { batch_values = new Map();
batch = Batch.ensure(); wv_values = new Map();
batch.is_fork = true;
batch_values = new Map();
wv_values = new Map();
settled = batch.settled();
fn(); var settled = batch.settled();
});
fn();
flushSync();
return { return {
commit: async () => { commit: async () => {

Loading…
Cancel
Save