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

Commit 07e795d

Browse files
committed
Add getChildScopes method to Scope and update documentation
1 parent 085a27a commit 07e795d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

basic.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3020,6 +3020,8 @@ about what the coroutine is waiting for, if it is in a waiting state.
30203020

30213021
The format of this array depends on the implementation of the **Scheduler** and the **Reactor**.
30223022

3023+
The `Async\Scope::getChildScopes()` method returns an array of all child scopes of the current scope.
3024+
30233025
The `Async\getCoroutines()` method returns an array of all coroutines in the application.
30243026

30253027
### Prototypes

examples/Async/Scope.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,6 @@ public function dispose(): void {}
5454
public function disposeSafely(): void {}
5555

5656
public function disposeAfterTimeout(int $timeout): void {}
57+
58+
public function getChildScopes(): array {}
5759
}

0 commit comments

Comments
 (0)