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

Introduce TimeOut waiter #68

Merged
merged 3 commits into from Oct 31, 2016
Merged

Conversation

tyx
Copy link
Member

@tyx tyx commented Oct 28, 2016

Let me know if any change should be done to be merged

Copy link
Member

@sroze sroze left a comment

Choose a reason for hiding this comment

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

Can you also add a mention of it in the waiters' documentation, in the docs folder?

private $timeOut;

/**
* var float
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a @ before var ?

*/
private $secondsEllapsed;

public function __construct(Waiter $delegateWaiter, $timeOut)
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a PhpDoc on the constructor?

{
$this->delegateWaiter = $delegateWaiter;
$this->timeOut = $timeOut;
$this->secondsEllapsed = 0;
Copy link
Member

Choose a reason for hiding this comment

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

0.0 if your secondsEllapsed property is actually float.

Copy link
Member Author

Choose a reason for hiding this comment

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

But we definitively should consider to switch the $seconds in Waiter::wait to float also. I currently use 0.5 in my own app. And this is why I managed secondsEllapsed in float

@tyx tyx force-pushed the feature/add-time-out-waiter branch from a9aa47a to 5710cfa Compare October 28, 2016 15:03
@tyx
Copy link
Member Author

tyx commented Oct 28, 2016

changes done

  • Missing doc

@sroze
Copy link
Member

sroze commented Oct 31, 2016

Thank you @tyx!

@sroze sroze merged commit ae0afb7 into Tolerance:master Oct 31, 2016
@tyx tyx deleted the feature/add-time-out-waiter branch November 1, 2016 17:17
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

Successfully merging this pull request may close these issues.

None yet

2 participants