Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

Support partial waits #99

Merged
merged 1 commit into from
Nov 9, 2015

Conversation

stefanrusek
Copy link
Contributor

Add an overload to waitForCompletion() that takes a timeout.

if (!isCompleted()) {
lock.wait(timeUnit.toMillis(duration));
}
return complete;
Copy link
Member

Choose a reason for hiding this comment

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

might as well reuse isCompleted()

@grantland grantland self-assigned this Nov 6, 2015
@stefanrusek
Copy link
Contributor Author

@grantland, PR updated.

@grantland
Copy link
Member

This looks awesome, thanks for the contribution!

@grantland
Copy link
Member

I'll merge this in once you're able to squash these commits.

@stefanrusek stefanrusek force-pushed the waitWithTimeout branch 2 times, most recently from bd4c259 to 39c2d3f Compare November 9, 2015 21:01
Add an overload to waitForCompletion() that takes a timeout.
grantland added a commit that referenced this pull request Nov 9, 2015
@grantland grantland merged commit 42c943b into BoltsFramework:master Nov 9, 2015
@grantland grantland mentioned this pull request Jan 12, 2016
3 tasks
@grantland grantland modified the milestone: 1.4.0 Jan 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants