Added ability to synchronously flush AsynEmitter