dotfiles/.vscode/extensions/vscodevim.vim-0.1.10/node_modules/sync-exec/coffee/lib/timeout.coffee
Cyryl Płotnicki 2f946d6200 Add .vscode
2016-09-11 10:29:13 +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