Now, the waitFor function is implemented by p-wait-for module, but this is a very simple function and may implement by our own. Need to make sure that if the condition meets in the first time, the process should keep in sync flow rather than be in async every time.