WaitConcurrent
class WaitConcurrent extends Concurrent
Properties
| protected Channel | $channel | from Concurrent | |
| protected WaitGroup | $wg |
Methods
No description
Proxy isFull() and isEmpty() to the channel.
Create a new coroutine with concurrency limiting and wait tracking.
Create a new coroutine with parent context propagation and wait tracking.
No description
No description
Wait for all coroutines to complete.
Details
at line 17
__construct(int $limit)
No description
in
Concurrent at line 31
mixed
__call(string $name, array $arguments)
Proxy isFull() and isEmpty() to the channel.
in
Concurrent at line 43
int
getLimit()
Get the concurrency limit.
in
Concurrent at line 51
int
length()
Get the current number of running coroutines.
in
Concurrent at line 59
int
getLength()
Get the current number of running coroutines.
in
Concurrent at line 67
int
getRunningCoroutineCount()
Get the current number of running coroutines.
in
Concurrent at line 75
Channel
getChannel()
Get the underlying channel.
at line 27
void
create(callable $callable)
Create a new coroutine with concurrency limiting and wait tracking.
at line 53
void
fork(callable $callable, array $keys = [])
Create a new coroutine with parent context propagation and wait tracking.
at line 13
bool
isFull()
No description
at line 13
bool
isEmpty()
No description
at line 80
bool
wait(float $timeout = -1)
Wait for all coroutines to complete.