belts and braces

async-another-try
Simon Holthausen 5 days ago
parent 32f4451f2e
commit ba4d37a4b4
No known key found for this signature in database

@ -895,6 +895,7 @@ export class Batch {
current_batch = null;
batch_values = null;
wv_values = null;
held_sources = null;
stale_sources = null;
old_values.clear();
@ -935,8 +936,11 @@ export class Batch {
/**
* @param {boolean} blocking
* @param {Effect} effect
* @returns {void}
*/
decrement(blocking, effect) {
if (this.merged_into) return this.merged_into.decrement(blocking, effect);
this.#pending -= 1;
if (blocking) {

@ -133,7 +133,6 @@ export function async_derived(fn, label, location) {
/** @type {Set<ReturnType<typeof deferred<V>>>} */
var deferreds = new Set();
// TODO types; add to source, or special object to not have all the other objects contain another property?
signal.e = async_effect(() => {
var effect = /** @type {Effect} */ (active_effect);

Loading…
Cancel
Save