not working asynchronously on the server when upgrading from v2.11.0 to v2.12.0


After upgrading from Meteor v2.11.0 to v2.12.0, the with a callback function is not working asynchronously on the server as expected.

Expected Behavior

The console logs order should be:

testAsync2 called
testAsync2 finished

Actual Behavior

The console logs order on v2.12.0 is:

testAsync2 finished
testAsync2 called

Steps to Reproduce

  1. Upgrade Meteor from v2.11.0 to v2.12.0
  2. Use the following Meteor methods:
'ownUser.testAsync': function testAsync() {'ownUser.testAsync2', (error, response) => {
    if (error) { throw new Meteor.Error(error); }
  console.log('testAsync2 called');
'ownUser.testAsync2': async function testAsync2() {
  // eslint-disable-next-line no-promise-executor-return
  const response = await new Promise((resolve) => setTimeout(() => resolve(true), 5000));
  console.log('testAsync2 finished');
  return response;
  1. Observe the console logs order


Reverting back to Meteor v2.11.0 resolves the issue.