Wait up to timeout for an event to occur for the monitored roots.
how long to wait for the event
See Implementation
Wait up to timeout for an event to occur for the monitored roots.