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-retryElm cannot test Task yet, but you can
Fire up elm reactor from inside examples/
$ cd examples/; elm reactorVisit 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.