Extend event::wait syntax to allow a 'filter' argument