Static fix

The this context matters even outside of objects, for example when you use waitfor with mongoose, where methods are kind of static.

Example:
Mongoose uses the this context in Model.find which is being called without having an instance of Model, however the this namespace referes to different methods which belong to Model.

wait.forMethod checks if obj is an object, in this case waitfor needs to allow function to be passed as well.