mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
use self._taskQueue.queueTask instead of self._taskQueue.runTask
This commit is contained in:
@@ -809,14 +809,14 @@ Object.assign(Session.prototype, {
|
||||
};
|
||||
|
||||
promise.then(result => {
|
||||
finish().then(() => {
|
||||
finish().finally(() => {
|
||||
if (result !== undefined) {
|
||||
payload.result = result;
|
||||
}
|
||||
self.send(payload);
|
||||
});
|
||||
}, (exception) => {
|
||||
finish().then(() => {
|
||||
finish().finally(() => {
|
||||
payload.error = wrapInternalException(
|
||||
exception,
|
||||
`while invoking method '${msg.method}'`
|
||||
|
||||
@@ -90,8 +90,8 @@ _.extend(PollingObserveDriver.prototype, {
|
||||
if (self._pollsScheduledButNotStarted > 0)
|
||||
return;
|
||||
++self._pollsScheduledButNotStarted;
|
||||
//TODO check this change
|
||||
await self._taskQueue.runTask(async function () {
|
||||
//TODO[fibers] check this change
|
||||
await self._taskQueue.queueTask(async function () {
|
||||
await self._pollMongo();
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user