Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

Commit bb2d770

Browse files
committed
Fix TaskGroup exception handling to properly dispose of scope resources
1 parent 005c779 commit bb2d770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/TaskGroup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ function taskGroup(array $files): void
3939
} catch (Exception $e) {
4040
echo "Caught exception: ", $e->getMessage();
4141
} finally {
42-
$tasks->dispose();
42+
$scope->dispose();
4343
}
4444
}

0 commit comments

Comments
 (0)