joyride

seancorfield 2022-12-08T18:38:51.280519Z

Is there a good way to "sleep for two seconds" in Joyride? I'm looking at kicking off a command in the terminal and then taking some action once the command has been running for a couple of seconds (it's a command that runs until I quit it, so I couldn't wait for "completion" even if .sendText allowed that).

borkdude 2022-12-08T18:39:22.499629Z

@seancorfield

(require '[promesa.core :as p])
(p/do
  (p/delay 2000)
  (your-command))

seancorfield 2022-12-08T18:39:43.946339Z

Ah, my lack of familiarity with promesa... Thank you!