Skip to content

Add TimeoutExecutor decorator - #48

Merged
clue merged 4 commits into
reactphp:masterfrom
clue-labs:timeout
Mar 2, 2017
Merged

Add TimeoutExecutor decorator #48
clue merged 4 commits into
reactphp:masterfrom
clue-labs:timeout

Conversation

@clue

@clueclue commented Feb 13, 2017

Copy link
Copy Markdown
Member

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

@clueclue added this to the v0.4.5 milestone Feb 13, 2017
@clueclue mentioned this pull request Feb 13, 2017

@WyriHaximusWyriHaximus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@clue

clue commented Mar 2, 2017

Copy link
Copy Markdown
MemberAuthor

Rebased now that #47 is in :shipit:

@clue

clue commented Mar 2, 2017

Copy link
Copy Markdown
MemberAuthor

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

@clue
clue merged commit 1ae13fa into reactphp:masterMar 2, 2017
@clue
clue deleted the timeout branch March 2, 2017 09:36
@jsor

jsor commented Mar 2, 2017

Copy link
Copy Markdown
Member

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

@clue

clue commented Mar 2, 2017

Copy link
Copy Markdown
MemberAuthor

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

@clueclue mentioned this pull request Sep 12, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@clue@jsor@WyriHaximus