Accept event emitted callback

It will be used in tests to remove .wait().