-
Notifications
You must be signed in to change notification settings - Fork 637
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
Eventually should allow configuration for space between requests #793
Comments
Based on Awailitiy, this is called Pooling. |
Yeah we must improve eventually. I looked at awatility and it seems to be basically the same as our eventually. I think what we need to support are different durations, different polling methods, and what awaitility calls conditional evaluation listeners. https://github.com/awaitility/awaitility/wiki/Usage#condition-evaluation-listener Happy for anyone to pick up this or I can tackle it. |
I'll try to work on that |
We're here to help if needed. |
The actual eventually receives all the data inside the method parameters. For a non-breaking change, we can add more parameters with default values. My suggestion is to create a "new" eventually. Maybe The result could be something like this:
What do you guys think? |
Perhaps we can use the But I believe that using a |
Do you have a example of a good one? |
eventually(polling = exponential(8), delay = 4.seconds, ..... and so on) {
}
Then you can do
eventually {
}
If you're happy with the defaults.
And it's 100% backwards compatible.
…On Fri, 14 Jun 2019 at 12:57, Matheus Messora ***@***.***> wrote:
Do you have a example of a good one?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#793>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFVSGR3NGGDXHQJKJRTUDDP2PLYFANCNFSM4HQTN4WA>
.
|
I liked your example, @sksamuel |
I would like to see this in 3.4 so I can pick this up if it's stalled. |
…n you want to use custom polling periods #793
No description provided.
The text was updated successfully, but these errors were encountered: