Provides cancellation guards and timeouts for asynchronous SDK runtime work.
Use Cancelable to cancel several registered operations together. Use
withTimeout when only a deadline is needed. These helpers reject
their returned promises, but they cannot stop arbitrary source promises.
Provides cancellation guards and timeouts for asynchronous SDK runtime work.
Use Cancelable to cancel several registered operations together. Use withTimeout when only a deadline is needed. These helpers reject their returned promises, but they cannot stop arbitrary source promises.
CancelableSleep and sleep provide individually cancellable delays.