We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70b3ff0 commit 9abc3b9Copy full SHA for 9abc3b9
src/Manager.php
@@ -202,9 +202,17 @@ public function instantiatedFunctions($functions = null)
202
*/
203
public function warm($functions = null)
204
{
205
- array_map(function (LambdaFunction $function) {
206
- $this->warmSingle($function);
+ $results = array_map(function (LambdaFunction $function) {
+ return $this->warmSingle($function);
207
}, $this->instantiatedFunctions($functions));
208
+
209
+ $results = Arr::flatten($results, 1);
210
211
+ // The requests will never be sent unless we wait for them to
212
+ // settle, because of how Guzzle handles async requests.
213
+ array_map(function ($result) {
214
+ return $result->settled();
215
+ }, $results);
216
}
217
218
/**
0 commit comments