fix order of operations

This commit is contained in:
Leonardo Venturini
2024-11-26 11:15:54 -04:00
parent 9f5de61f7c
commit d86ba5c20d

View File

@@ -1,5 +1,5 @@
import { ObserveHandle } from './observe_handle';
import isEmpty from 'lodash.isempty';
import { ObserveHandle } from './observe_handle';
interface ObserveMultiplexerOptions {
ordered: boolean;
@@ -34,8 +34,7 @@ export class ObserveMultiplexer {
this._ordered = ordered;
this._onStop = onStop;
// @ts-ignore
this._queue = new Meteor._AsynchronousQueue();
this._queue = new Meteor._AsynchronousQueue({ orderMatters: true });
this._handles = {};
this._resolver = null;
this._isReady = false;