This is not GitHub.com

Like what you see? Install OctoLinker now!

Skip to content
#

await

Here are 338 public repositories matching this topic...

salmanm
salmanm commented Jan 23, 2019

I know there's feature to bail out conditionally, but I think it would be useful to have a function that is called as soon as the operation fails, and the return value of that function should decide whether or not the next retry should happen.

So if (!op.retry(err)) { would just become something like if (!options.shouldRetry(err) || !op.retry(err)) {.

Current alternative to this would be

alexanderhawley
alexanderhawley commented Jul 10, 2019

In the docs, it describes using environment variables to configure FluentLenium. It does not work using a real terminal. Environment variables cannot have dots . in them. As an aside, it does happen to work using a pseudo-environment like Intellij. It is also of note that EXPORT does't work and needs to be lowercase export.

https://fluentlenium.com/docs/configuration/#configuration-ways

moodysalem
moodysalem commented Jun 20, 2019

From the docs

The factor option is used to grow the delay exponentially. For example, a value of 2 will cause the delay to double each time. A value of 3 will cause the delay to triple each time. Fractional factors (e.g. 1.5) are also allowed.

The following formula is used to calculate delay using the factor:

delay = delay * Math.pow(factor, attemptNum)

(default: 0)

Th

Improve this page

Add a description, image, and links to the await topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the await topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.