This repository was archived by the owner on Jun 16, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ spawn(function() {
7070 echo "Start";
7171 suspend; // Suspend the coroutine
7272 echo "Resumed";
73- }););
73+ });
7474</code>
7575
7676=== Scope ===
@@ -82,7 +82,7 @@ $scope->spawn(function() {
8282 // Coroutine bound to $scope
8383 spawn(function() {
8484 // Coroutine bound to $scope
85- }););;
85+ });
8686});
8787
8888// Dispose of the scope after 5 seconds
@@ -1168,11 +1168,11 @@ $scope = new Scope();
11681168spawn(function() {
11691169 try {
11701170 $scope->awaitCompletion(Async\signal(SIGTERM));
1171- });); catch (\Async\CancellationException $exception) {
1171+ } catch (\Async\CancellationException $exception) {
11721172 $scope->awaitAfterCancellation();
11731173 echo "Caught exception: ",$exception->getMessage()."\n";
11741174 }
1175- };
1175+ }) ;
11761176
11771177$scope->spawn(function() use($scope) {
11781178 $scope->cancel();
@@ -1461,12 +1461,12 @@ await spawn in $scope {
14611461 spawn(function() {
14621462 delay(1000);
14631463 echo "Task 1\n";
1464- }););;
1464+ });
14651465
14661466 spawn(function() {
14671467 delay(2000);
14681468 echo "Task 2\n";
1469- }););;
1469+ });
14701470
14711471 echo "Root task\n";
14721472};
You can’t perform that action at this time.
0 commit comments