Name: meteor-promise
Owner: OK GROW!
Description: DEPRECATED: Use deanius:promise instead
Created: 2015-08-04 18:17:24.0
Updated: 2017-03-27 17:29:32.0
Pushed: 2016-07-22 17:05:22.0
Homepage: https://github.com/deanius/meteor-promise
Size: 154
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
WARNING: Use deanius:meteor-promise
package at https://github.com/deanius/meteor-promise
The demo-enabled README is at http://okgrow-promise.meteor.com/
The okgrow:promise package gives you the following functionality:
Meteor.promise
- The same as Meteor.call
, but you omit the callback parameter, and it returns a Promise
for the resultMeteor.wrapPromise
- Takes any callback-style function, and returns a Promise-returning function.
This is like Meteor.wrapAsync
, but useful on the client.HTTP.getPromise
- All methods on the HTTP object will have Promise-returning versions, just append Promise
onto the method name.Meteor.subscribe
- The object returned by Meteor.subscribe
will have a readyPromise
property which resolves when ready()
returns true
.ReactivePromise
- A function to wrap Promise-returning functions with, to create reactive functions - such as helpers - which update when their promised value becomes available.Thoughts? Questions? Open an issue in okgrow:promise
, and let's discuss. Or find me on social media. Thanks for your interest!