(thunk-timeout thunk ms)
(thunk-timeout thunk time unit)
(thunk-timeout thunk time unit tg)
Takes a function and an amount of time to wait for thse function to finish executing. The sandbox can do this for you. unit is any of :ns, :us, :ms, or :s which correspond to TimeUnit/NANOSECONDS, MICROSECONDS, MILLISECONDS, and SECONDS respectively.
Takes a function and an amount of time to wait for thse function to finish executing. The sandbox can do this for you. unit is any of :ns, :us, :ms, or :s which correspond to TimeUnit/NANOSECONDS, MICROSECONDS, MILLISECONDS, and SECONDS respectively.
Create a map of pretty keywords to ugly TimeUnits
Create a map of pretty keywords to ugly TimeUnits
(with-timeout time & body)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close