Meteor Promise.await vs native await

The difference between What are the different uses of Promise.await and native await? And different performance or not?

Thank you.

As far as I can see is Promise.await a polyfill for await:

Promise.await is only available on the server and uses Fibers to suspend execution until the Promise is resolved. It’s a convenient way of updating server-side code to resolve a Promise without re-writing large sections in standard async / await syntax. In short, on the server, you don’t need to declare an async scope to use Promise.await.

4 Likes

@robfallows @jkuester Thank you.

1 Like