leanprover-community / mathlib

  • Home
  • Zulip archive
  • API documentation
  • Lean web editor
  • Links

Zulip Chat Archive

Stream: new members

Topic: IO action: wait 1 second


Thomas Preu (Aug 13 2025 at 11:32):

In Functional Programming in Lean Ch. 2.2.4 we find an example of a countdown that is displayed on the terminal when executed.
Is there a way to have an action that waits 1 second before the next number is printed? I imagine it might involve IO.wait .

Henrik Böving (Aug 13 2025 at 11:34):

docs#IO.sleep is what you are looking


Last updated: Dec 20 2025 at 21:32 UTC

Theme Simple by wildflame © 2016 Powered by jekyll