tidylab / decorators

Extend the behaviour of a function without explicitly modifying it
https://tidylab.github.io/decorators/
Other
12 stars 0 forks source link

New decorator: add_timeout #11

Open harell opened 3 years ago

harell commented 3 years ago

See R.utils::withTimeout

add_timeout(func, event = function() stop("time out")