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,