choonkeat/elm-retry - version: 1.0.1

for more information visit the package's GitHub page

Package contains the following modules:

elm-retry

Add retries to your task

-- before
originalTask
    |> Task.attempt DidTask


-- after
originalTask
    |> Retry.with [ Retry.maxDuration 7000
                  , Retry.constantInterval 800
                  ]
    |> Task.attempt DidTask

Installation

$ elm install choonkeat/elm-retry

Building & Testing

Elm cannot test Task yet, but you can

  1. Fire up elm reactor from inside examples/

    sh $ cd examples/; elm reactor

  2. Visit http://localhost:8000/ and pick any file in src/

  3. Open your browser's developer / javascript console to see the output

License

Copyright © 2019 Chew Choon Keat

Distributed under the MIT license.