Implement async search using AnyEvent.