Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const subscription = Cancelable.subscribe(cancelable, () => {
clearTimeout(handle);
reject(new CancelError());
});
});
throwIfSignaled() {
if (this.signaled) {
const error = new CancelError();
if (Error.captureStackTrace) {
Error.captureStackTrace(error, throwIfSignaledMethod);
}
throw error;
}
}