Use AnyEvent on worker thread