Merged
Merged
Conversation
| $once = $this->expectCallableOnce(); | ||
| $deferred = new Deferred(function () use ($once) { | ||
| $once(); | ||
| throw new RuntimeException('Cancelled'); |
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
| ])); | ||
| ``` | ||
|
|
||
| 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 |
jsor approved these changes Dec 9, 2017
clue deleted the limit-handlers branch
December 9, 2017 15:14