New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using .timeout(), I get a warning that says "cancellation is disabled" #970

Closed
JoshuaWise opened this Issue Jan 22, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@JoshuaWise

JoshuaWise commented Jan 22, 2016

In my code, I'm not using .cancel() at all.

From my understanding, .timeout() rejects a promise, not cancels it. But the whenever my timeout fires, I get a warning that says "cancellation is disabled". It appears that the timeout promise was rejected as expected.

Is there any difference with using .timeout() with cancellation disabled vs enabled? Why am I getting this warning?

@reidrankin

This comment has been minimized.

Show comment
Hide comment
@reidrankin

reidrankin Jan 23, 2016

See issue #891; it is indeed supposed to cancel the promise, if cancellation is enabled. The docs do omit this point, though.

reidrankin commented Jan 23, 2016

See issue #891; it is indeed supposed to cancel the promise, if cancellation is enabled. The docs do omit this point, though.

@JoshuaWise

This comment has been minimized.

Show comment
Hide comment
@JoshuaWise

JoshuaWise Jan 23, 2016

I see, thanks for the info.
And thanks for the quick fix, petkaantonov..

JoshuaWise commented Jan 23, 2016

I see, thanks for the info.
And thanks for the quick fix, petkaantonov..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment