Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Remove call to FiberMap::cancel
  • Loading branch information
kelunik authored Aug 24, 2022
commit 60d2aaefb29b3b421d7cc5babb140c0f4bdcaae2
1 change: 0 additions & 1 deletion src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ function async(callable $function): callable

$fiber->start();
}, function () use (&$fiber): void {
FiberMap::cancel($fiber);
$promise = FiberMap::getPromise($fiber);
if ($promise instanceof PromiseInterface && \method_exists($promise, 'cancel')) {
$promise->cancel();
Expand Down