convenient waitForResolver usage.