Fix errors in asynchronous example code
Merge pull request #414 from sharwell/must-wait

Fix errors in asynchronous example code