Skip to content
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

Support Promise cancellation #28

Closed
clue opened this issue Sep 3, 2015 · 1 comment
Closed

Support Promise cancellation #28

clue opened this issue Sep 3, 2015 · 1 comment

Comments

@clue
Copy link
Member

clue commented Sep 3, 2015

We should register a Promise cancellation handler so that the following code actually cleans up the underlying socket resource:

$promise = $resolver->resolve('reactphp.org');

$promise->cancel();

(This likely depends on #19)

@clue
Copy link
Member Author

clue commented Feb 24, 2016

This also likely depends on reactphp-legacy/socket-client#40 so that a (pending) TCP connection to the DNS server can also be canceled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant