apinf / platform

Apinf - Open source API management platform with multi proxy and protocol support
https://apinf.com/
European Union Public License 1.1
74 stars 33 forks source link

Helper function to "promisify" method calls #2126

Closed jykae closed 6 years ago

jykae commented 7 years ago

Consider adding helper function to core helper functions, use of Promises would make chained Meteor calls easier to read.

Reference: https://forums.meteor.com/t/start-using-async-await-instead-of-promises-and-callbacks/17037/52

jykae commented 7 years ago

Blog post also released: https://blog.meteor.com/using-promises-on-the-client-in-meteor-fb4f1c155f84#.dlpuuizcu

mauriciovieira commented 7 years ago

This could be useful especially in callback chained functions we have inside our core.

marla-singer commented 6 years ago

Close this issue because the helper function is done https://github.com/apinf/platform/blob/71770c6117bfc40a0404258ec75e720fccd8850a/apinf_packages/core/helper_functions/promisify_call.js#L9-L17