fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 185: Execute function in 30 seconds
Idiom # 185: Execute function in 30 seconds
See
programming-idioms.org
:
Code
time.nano.sleep (time.duration.seconds 30) _ := f 42
What are effects?
Running Example
ex185 => f(n i32) is time.nano.sleep (time.duration.seconds 30) f 42
What are effects?
last changed: 2024-07-01
next: Idiom # 186: Exit program cleanly