RxJS Observable interop with Promises and Async-Await

If it accepts Observable, it accepts Promise

Make a Promise-returning function retryable with defer

Define an Observable with async-await using defer()

Subscribe to an Observable with forEach to create concurrent tasks in async-await

Use toPromise() with async/await to emit the last Observable value as a Promise

Observables and Promises work well together

--

--

RxJS Lead. Views are my own

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store