Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()`
4 changes: 2 additions & 2 deletions proofs/functional.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static function($assert, $value) {
default => Sequence::of(),
})
->carryWith($all->append($continuation->results()))
->wakeOnResult(),
->wake(),
);
$assert->same([$value], $values->toList());
},
Expand Down Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion src/Scope/Continuation.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function finish(): self
* @return self<C>
*/
#[\NoDiscard]
public function wakeOnResult(): self
public function wake(): self
{
return new self(
Next::wake,
Expand Down
Loading