andrewMacmurray / elm-concurrent-task / ConcurrentTask.Process

A drop in replacement for elm/core's Process.sleep.

The JavaScript runner has this task builtin by default. If needed it can be overridden like so:

NOTE: The custom example is the same as the built-in implementation.

import * as ConcurrentTask from "

sleep : Basics.Int -> ConcurrentTask x ()

Wait for a number of milliseconds before continuing with the next Task.

A direct replacement for elm/core's Process.sleep.