Add retries to your task
-- before
originalTask
|> Task.attempt DidTask
-- after
originalTask
|> Retry.with [ Retry.maxDuration 7000
, Retry.constantInterval 800
]
|> Task.attempt DidTask
$ elm install choonkeat/elm-retry
Elm cannot test Task
yet, but you can
-
Fire up
elm reactor
from insideexamples/
$ cd examples/; elm reactor
-
Visit http://localhost:8000/ and pick any file in
src/
-
Open your browser's developer / javascript console to see the output
Copyright © 2019 Chew Choon Keat
Distributed under the MIT license.