import { Meteor } from 'meteor/meteor'; import Future from 'fibers/future'; import Todo from '../Todo'; Meteor.publish('todo.public', function() { const future = new Future(); Meteor.setTimeout(() => future.return(Todo.find()), 5000); return future.wait(); });
Aucun commentaire:
Enregistrer un commentaire