Meteor Wrapasync [TESTED | 2026]

Meteor 3 has removed Fibers. wrapAsync still works, but you should migrate to native async/await :

It converts a callback-based asynchronous function into a synchronous-looking one (using Fibers under the hood in Meteor 2.x and below).

import { Meteor } from 'meteor/meteor'; Meteor.methods({ 'getData'(id) { const syncGetData = Meteor.wrapAsync(legacyLibrary.getData); return syncGetData(id); } });