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

Add TimeoutExecutor decorator #48

Merged
merged 4 commits into from
Mar 2, 2017
Merged

Add TimeoutExecutor decorator #48

merged 4 commits into from
Mar 2, 2017

Conversation

clue
Copy link
Member

@clue clue commented Feb 13, 2017

The Executor violates SRP, so this PR is a first step to break this up into multiple independent classes.

This PR preserves full BC by making its timeout feature optional first and then using a TimeoutExecutor decorator instead. This can also be reused for other components, in particular clue/mdns-react. Also, this is needed for upcoming changes related to #12 and #19 which will introduce new executor classes that will reuse this timeout handling.

Builds on top of #35
Somewhat similar to reactphp-legacy/socket-client#51

@clue clue added this to the v0.4.5 milestone Feb 13, 2017
@clue clue mentioned this pull request Feb 13, 2017
@WyriHaximus WyriHaximus requested a review from jsor February 22, 2017 21:24
Copy link
Member

@WyriHaximus WyriHaximus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@clue
Copy link
Member Author

clue commented Mar 2, 2017

Rebased now that #47 is in :shipit:

@clue
Copy link
Member Author

clue commented Mar 2, 2017

Rebased again to fix new tests added via #45 :shipit:

@clue clue merged commit 1ae13fa into reactphp:master Mar 2, 2017
@clue clue deleted the timeout branch March 2, 2017 09:36
@jsor
Copy link
Member

jsor commented Mar 2, 2017

@clue Are you planning to remove the $timeout parameter of the Executor constructor for v0.5?

@clue
Copy link
Member Author

clue commented Mar 2, 2017

@jsor Very likely, but not 100% decided yet. I'll make sure to set up a roadmap for this component soon 👍

@clue clue mentioned this pull request Sep 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants