Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
(do (Thread/sleep 30000)
(f 42))
Future.delayed(const Duration(seconds: 30), () => f(42));
sleep(30*1000)
f(42)
let id = setTimeout(f, 30000, 42);
sleep(30);
f(42);
local $SIG{ALRM} = sub { f(42) };
alarm 30;
Thread.new do
sleep 30
f(42)
end
(f future: 30 "seconds" * 1000) value: 42.