From 3d6d9a9ba30bd1b86a92187711e13a5dc6ffc46e Mon Sep 17 00:00:00 2001 From: Baptiste Langlade Date: Sun, 8 Feb 2026 14:37:27 +0100 Subject: [PATCH] rename Continuation::wakeOnResult() to ::wake() --- CHANGELOG.md | 1 + proofs/functional.php | 4 ++-- src/Scope/Continuation.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e58504..b4097a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,3 +8,4 @@ - Requires `innmind/operating-system:~7.0` - Requires `innmind/time:~1.0` - Tasks results are now accessible via `Continuation::results()` instead of scope's fourth argument +- `Continuation::wakeOnResult()` has been renamed `::wake()` diff --git a/proofs/functional.php b/proofs/functional.php index 3b3ce36..1600618 100644 --- a/proofs/functional.php +++ b/proofs/functional.php @@ -97,7 +97,7 @@ static function($assert, $value) { default => Sequence::of(), }) ->carryWith($all->append($continuation->results())) - ->wakeOnResult(), + ->wake(), ); $assert->same([$value], $values->toList()); }, @@ -466,7 +466,7 @@ static function($assert) { static fn($os) => $os->process()->halt(Period::second(1))->unwrap(), )->map(Task\Discard::result(...))) ->carryWith($all->append($continuation->results())) - ->wakeOnResult(), + ->wake(), ); $assert->same(0, $results->size()); diff --git a/src/Scope/Continuation.php b/src/Scope/Continuation.php index 68808f8..06cc048 100644 --- a/src/Scope/Continuation.php +++ b/src/Scope/Continuation.php @@ -109,7 +109,7 @@ public function finish(): self * @return self */ #[\NoDiscard] - public function wakeOnResult(): self + public function wake(): self { return new self( Next::wake,