adds waitFor example to the readme