Added docs for the waitForPendingOperationsToFinish method.