Use the await Operator with Any Thenable

Share this video with your friends

Send Tweet

The await operator is not restricted to ES2015 promises. It can be used to await any thenable — that is, any object with a .then() method. This lesson illustrates how to await promises that have been created using a promise library.

Mike
Mike
~ 7 years ago

Great example showing how to use await with other promise libraries.