gtoolkit
gtoolkit copied to clipboard
Add `AsyncPromiseWithTimeout` primitive and `asyncThen:otherwise:` method
- It would be useful to be able specify a timeout for a promise so that we're not waiting forever on computation.
- Also, seems like there is blocking
then:otherwise:but not the equivalent non-blockingasyncThen:otherwise:. Seems like consistency should be good here so that user doesn't need to test withisRejectedor similar logic in their code.