clue · GitHub

Merged

Merged

Conversation

@WyriHaximus

WyriHaximus

$pending--;
$that->processQueue();

throw $error;

@clue

WyriHaximus

$once = $this->expectCallableOnce();
$deferred = new Deferred(function () use ($once) {
$once();
throw new RuntimeException('Cancelled');

@clue

@clue clue changed the title Add LimitHandlersMiddleware to limit how many next handlers can be executed concurrently Add LimitConcurrentRequestsMiddleware to limit how many next handlers can be executed concurrently

Dec 8, 2017

@clue

jsor

]));
```

More sophisticated examples include limiting the total number of of requests
*
* This class is used to buffer all events that happen on a given stream while
* it is paused. This allows you to pause a stream and no longer watch for any
* of its events. Once the stream is resumed, all buffered event will be
* ]));
* ```
*
* More sophisticated examples include limiting the total number of of requests

@clue

@clue

jsor

jsor approved these changes Dec 9, 2017

WyriHaximus

@WyriHaximus

@clue

clue deleted the limit-handlers branch

December 9, 2017 15:14

Read the original on github.com ↗