more idiomatic usage of Emitter