Atomic event emitter for solving your race conditions