Test to see if a promise is fulfilled.
optional delay in milliseconds before checking
true if the promise is fulfilled (either resolved or rejected), and false if the promise is still pending.
Test to see if a promise is fulfilled.