You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/wait-on.js
+18-1
Original file line number
Diff line number
Diff line change
@@ -64,9 +64,26 @@ var WAIT_ON_SCHEMA = Joi.object().keys({
64
64
@param opts.timeout integer - optional timeout in ms, default Infinity. Aborts with error.
65
65
@param opts.verbose boolean - optional flag to turn on debug output
66
66
@param opts.window integer - optional stabilization time in ms, default 750ms. Waits this amount of time for file sizes to stabilize or other resource availability to remain unchanged. If less than interval then will be reset to interval
67
-
@param cb callback function with signature cb(err) - if err is provided then, resource checks did not succeed
67
+
@param cb optional callback function with signature cb(err) - if err is provided then, resource checks did not succeed
68
+
if not specified, wait-on will return a promise that will be rejected if resource checks did not succeed or resolved otherwise
0 commit comments