delegateQueryAsync is put into thread