nodejitsu / nexpect

spawn and control child processes in node.js with ease
http://github.com/nodejitsu/nexpect
Other
290 stars 37 forks source link

`wait` should accept an optional timeout #36

Open BenAHammond opened 7 years ago

BenAHammond commented 7 years ago

At the moment if you wait for a condition that never occurs the process will hang indefinitely.

It would be nice if this instead timed out after a reasonable duration and allowed you to specify that Timeout in the arguments or options list.