Wait for event timeout

Here's the explanation of timeout vs. duration