I’ve had some difficulty importing fibers/future
.
I’ve tried const Future = require('fibers/future')
and import Future from 'fibers/future'
both of which seem to give me a Future constructor but when new Future()
is called it always returns an empty object.
Am I supposed to use the fibers
npm package? Or is there a Meteor-specific implementation of Futures?
This is for Meteor 1.3.2.