dotfiles/.vscode/extensions/vscodevim.vim-0.2.0/node_modules/sync-exec/coffee/lib/timeout.coffee
Cyryl Płotnicki 280bcab25f VSCode update
2016-09-24 13:12:34 +02:00

7 lines
130 B
CoffeeScript

# throw error if time limit has been exceeded
module.exports = (limit, msg) ->
if Date.now() > limit
throw new Error msg