Set search function (async variant).
Use this call to set the search function. By default a new thread will be spawned and the search_func will be invoked there. You must call either this method or the sync variant set_search_func() to make this instance fully usable. See set_search_func() for more details.