Concurrent
class Concurrent
Properties
| protected Channel | $channel |
Methods
No description
Proxy isFull() and isEmpty() to the channel.
Get the concurrency limit.
Get the current number of running coroutines.
Get the current number of running coroutines.
Get the current number of running coroutines.
Get the underlying channel.
Create a new coroutine with concurrency limiting.
Create a new coroutine with concurrency limiting and parent context propagation.
No description
No description
Details
at line 19
__construct(int $limit)
No description
at line 31
mixed
__call(string $name, array $arguments)
Proxy isFull() and isEmpty() to the channel.
at line 43
int
getLimit()
Get the concurrency limit.
at line 51
int
length()
Get the current number of running coroutines.
at line 59
int
getLength()
Get the current number of running coroutines.
at line 67
int
getRunningCoroutineCount()
Get the current number of running coroutines.
at line 75
Channel
getChannel()
Get the underlying channel.
at line 83
void
create(callable $callable)
Create a new coroutine with concurrency limiting.
at line 107
void
fork(callable $callable, array $keys = [])
Create a new coroutine with concurrency limiting and parent context propagation.
at line 15
bool
isFull()
No description
at line 15
bool
isEmpty()
No description