From ad1eac9af27fde91e778a7db0aba4a9af29fafbb Mon Sep 17 00:00:00 2001 From: Gauthier SCANO Date: Wed, 6 Nov 2024 12:17:51 +0100 Subject: [PATCH] Update README.md Changing references from Amp\Promise to Amp\Future for awaitAll, awaitFirst and awaitAny functions. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3210e6c7..479a749b 100644 --- a/README.md +++ b/README.md @@ -235,15 +235,15 @@ individual keys in the component array are preserved from the `iterable` passed ##### awaitAll -`Amp\Promise\awaitAll($iterable, $cancellation)` awaits all futures and returns their results as `[$errors, $values]` array. +`Amp\Future\awaitAll($iterable, $cancellation)` awaits all futures and returns their results as `[$errors, $values]` array. ##### awaitFirst -`Amp\Promise\awaitFirst($iterable, $cancellation)` unwraps the first completed `Future`, whether successfully completed or errored. +`Amp\Future\awaitFirst($iterable, $cancellation)` unwraps the first completed `Future`, whether successfully completed or errored. ##### awaitAny -`Amp\Promise\awaitAny($iterable, $cancellation)` unwraps the first successfully completed `Future`. +`Amp\Future\awaitAny($iterable, $cancellation)` unwraps the first successfully completed `Future`. #### Future Creation