adjusted code to work with a GuzzleHttp\Pool::batch call