@@ -132,13 +132,6 @@ If no cancellation handler is passed to the `Promise` constructor, then invoking
132132its ` cancel() ` method it is effectively a NO-OP.
133133This means that it may still be pending and can hence continue consuming resources.
134134
135- > Note: If you're stuck on legacy versions (PHP 5.3), then this is also a NO-OP,
136- as the Promise cancellation API is currently only available in
137- [ react/promise v2.1.0] ( https://github.com/reactphp/promise )
138- which in turn requires PHP 5.4 or up.
139- It is assumed that if you're actually still stuck on PHP 5.3, resource cleanup
140- is likely one of your smaller problems.
141-
142135For more details on the promise cancellation, please refer to the
143136[ Promise documentation] ( https://github.com/reactphp/promise#cancellablepromiseinterface ) .
144137
@@ -168,11 +161,6 @@ handling the `cancel()` call:
168161 The same happens if the input ` $promise ` does not register a
169162 [ cancellation handler] ( #cancellation-handler ) .
170163
171- > Note: If you're stuck on legacy versions (PHP 5.3), then the ` cancel() ` method
172- is not available, as the Promise cancellation API is currently only available in
173- [ react/promise v2.1.0] ( https://github.com/reactphp/promise )
174- which in turn requires PHP 5.4 or up.
175-
176164#### Output cancellation
177165
178166Similarily, you can also explicitly ` cancel() ` the resulting promise like this:
@@ -229,11 +217,6 @@ This means that while the resulting promise will still be rejected after the
229217timeout, the underlying input ` $promise ` may still be pending and can hence
230218continue consuming resources.
231219
232- > Note: If you're stuck on legacy versions (PHP 5.3), then the ` cancel() ` method
233- is not available, as the Promise cancellation API is currently only available in
234- [ react/promise v2.1.0] ( https://github.com/reactphp/promise )
235- which in turn requires PHP 5.4 or up.
236-
237220#### Collections
238221
239222If you want to wait for multiple promises to resolve, you can use the normal promise primitives like this:
@@ -280,11 +263,6 @@ $timer->cancel();
280263
281264This will abort the timer and * reject* with a ` RuntimeException ` .
282265
283- > Note: If you're stuck on legacy versions (PHP 5.3), then the ` cancel() ` method
284- is not available, as the Promise cancellation API is currently only available in
285- [ react/promise v2.1.0] ( https://github.com/reactphp/promise )
286- which in turn requires PHP 5.4 or up.
287-
288266### reject()
289267
290268The ` reject($time, LoopInterface $loop) ` function can be used to create a new Promise
@@ -311,11 +289,6 @@ $timer->cancel();
311289
312290This will abort the timer and * reject* with a ` RuntimeException ` .
313291
314- > Note: If you're stuck on legacy versions (PHP 5.3), then the ` cancel() ` method
315- is not available, as the Promise cancellation API is currently only available in
316- [ react/promise v2.1.0] ( https://github.com/reactphp/promise )
317- which in turn requires PHP 5.4 or up.
318-
319292### TimeoutException
320293
321294The ` TimeoutException ` extends PHP's built-in ` RuntimeException ` .
@@ -335,12 +308,6 @@ The recommended way to install this library is [through composer](http://getcomp
335308}
336309```
337310
338- > Note: If you're stuck on legacy versions (PHP 5.3), then the ` cancel() ` method
339- is not available,
340- as the Promise cancellation API is currently only available in
341- [ react/promise v2.1.0] ( https://github.com/reactphp/promise )
342- which in turn requires PHP 5.4 or up.
343-
344311## License
345312
346313MIT
0 commit comments