An event driven library like eventEmitter in Swift.