dotfiles/.vscode/extensions/vscodevim.vim-0.1.10/node_modules/sync-exec/coffee/lib/timeout.coffee

8 lines
130 B
CoffeeScript
Raw Normal View History

2016-09-11 09:29:13 +01:00
# throw error if time limit has been exceeded
module.exports = (limit, msg) ->
if Date.now() > limit
throw new Error msg