#Wait for n milliseconds ?

1 messages · Page 1 of 1 (latest)

teal drift
#

Is there any way in Gleam to wait for some number of milliseconds ? If not is there a way to call a shell command (like sleep for example) ? I'm making a simple CLI tool for fun and I wondered if I could do that in Gleam

quasi kettle
#

process.sleep in gleam_erlang for Erlang

#

or global.set_timeout in plinth for JavaScript

teal drift
#

Thanks for the fast answer!

quasi kettle
#

There's a couple options for shell stuff

teal drift
#

I searched for "command" and "unix" but forgot to search "shell" in the gleam package indexer