Implement task timeout with default timeout 60 sec (#5)

Terminating a task during its execution can leave the directory in an invalid
state. PlugClean command was updated as well to handle invalid directories.
This commit is contained in:
Junegunn Choi
2013-09-28 12:43:21 +09:00
parent b175e5fc85
commit fe942d61d2
2 changed files with 57 additions and 27 deletions

View File

@@ -65,7 +65,12 @@ plugins with `plug#begin(path)` call.
| PlugUpgrade | Upgrade vim-plug itself |
| PlugStatus | Check the status of plugins |
(Default number of threads = `g:plug_threads` or 16)
### Options for parallel installer
| Flag | Default | Description |
| ---------------- | ------- | --------------------------------- |
| `g:plug_threads` | 16 | Default number of threads to use |
| `g:plug_timeout` | 60 | Time limit of each task in seconds |
### Dependency resolution