Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 27... Línea 27...
27
- Works with any object that has a `then` function.
27
- Works with any object that has a `then` function.
28
- C# style async/await coroutine promises using
28
- C# style async/await coroutine promises using
29
  `GuzzleHttp\Promise\Coroutine::of()`.
29
  `GuzzleHttp\Promise\Coroutine::of()`.
Línea -... Línea 30...
-
 
30
 
-
 
31
 
-
 
32
## Installation
-
 
33
 
-
 
34
```shell
-
 
35
composer require guzzlehttp/promises
-
 
36
```
-
 
37
 
-
 
38
 
-
 
39
## Version Guidance
-
 
40
 
-
 
41
| Version | Status              | PHP Version  |
-
 
42
|---------|---------------------|--------------|
-
 
43
| 1.x     | Security fixes only | >=5.5,<8.3   |
-
 
44
| 2.x     | Latest              | >=7.2.5,<8.5 |
30
 
45
 
Línea 31... Línea 46...
31
 
46
 
32
## Quick Start
47
## Quick Start
33
 
48
 
Línea 428... Línea 443...
428
```php
443
```php
429
$loop = React\EventLoop\Factory::create();
444
$loop = React\EventLoop\Factory::create();
430
$loop->addPeriodicTimer(0, [$queue, 'run']);
445
$loop->addPeriodicTimer(0, [$queue, 'run']);
431
```
446
```
Línea 432... Línea -...
432
 
-
 
433
*TODO*: Perhaps adding a `futureTick()` on each tick would be faster?
-
 
Línea 434... Línea 447...
434
 
447
 
Línea 435... Línea 448...
435
 
448
 
Línea 499... Línea 512...
499
 
512
 
Línea 500... Línea 513...
500
## Upgrading from Function API
513
## Upgrading from Function API
501
 
514
 
502
A static API was first introduced in 1.4.0, in order to mitigate problems with
515
A static API was first introduced in 1.4.0, in order to mitigate problems with
503
functions conflicting between global and local copies of the package. The
516
functions conflicting between global and local copies of the package. The
Línea 504... Línea 517...
504
function API will be removed in 2.0.0. A migration table has been provided here
517
function API was removed in 2.0.0. A migration table has been provided here for
505
for your convenience:
518
your convenience:
506
 
519
 
507
| Original Function | Replacement Method |
520
| Original Function | Replacement Method |