react in sample code to recent WaitableEvent code changes