I am unable to get Promise.allSettled() to trigger when the provided Promises are fulfilled
I am trying to create a list of Promises for collecting data from an API, and then once all of the Promises are fulfilled (either resolved or rejected, it doesn’t matter), run another call to the API. However, somewhere along the line, something is not correctly resolving and I am not sure where. Promise.all() with the same array will trigger, but not Promise.allSettled().
How do await and Promise.resolve() test whether their arg is a thenable?
I would like to be able to reason about what await
will do when it is called on various kinds of values.