This function is similar to like waitFor but it will wait until the resolver returns a truthy value. If the resolver throws an error, the function rejects immediately.
resolver
Optional
waitFor
This function is similar to like waitFor but it will wait until the
resolverreturns a truthy value. If theresolverthrows an error, the function rejects immediately.