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 are currently unusable on supported
Node.js runtimes because of a Promise-subclass compatibility problem. Do not
use them.
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 are currently unusable on supported Node.js runtimes because of a Promise-subclass compatibility problem. Do not use them.