Create a function that checks whether a given promise is resolved or not.
Note: the returned function is synchronous, and within the same microtask boundary, it's guaranteed to return the same value.
Create a function that checks whether a given promise is resolved or not.
Note: the returned function is synchronous, and within the same microtask boundary, it's guaranteed to return the same value.