clue · GitHub

@clue

@clue

SimonFrings

@clue

This was referenced

Feb 18, 2022

Closed

Merged

WyriHaximus

@WyriHaximus

@clue

clue deleted the the-future-is-now branch

February 19, 2022 09:36

WyriHaximus added a commit to WyriHaximus-labs/async that referenced this pull request

Feb 20, 2022
Since `async()` returns a promise and those are normally cancelable, implementing this puts them in line with the rest of our ecosystem. As such the following example will throw a timeout exception from the canceled `sleep()` call.
```php
$promise = async(static function (): int {
    echo 'a';
    await(sleep(2));
    echo 'b';
    return time();
})();
$promise->cancel();
await($promise);
````
This builds on top of reactphp#15, reactphp#18, reactphp#19, reactphp#26, reactphp#28, reactphp#30, and reactphp#32.

Merged

WyriHaximus added a commit to WyriHaximus-labs/async that referenced this pull request

Feb 21, 2022
Since `async()` returns a promise and those are normally cancelable, implementing this puts them in line with the rest of our ecosystem. As such the following example will throw a timeout exception from the canceled `sleep()` call.
```php
$promise = async(static function (): int {
    echo 'a';
    await(sleep(2));
    echo 'b';
    return time();
})();
$promise->cancel();
await($promise);
````
This builds on top of reactphp#15, reactphp#18, reactphp#19, reactphp#26, reactphp#28, reactphp#30, and reactphp#32.

WyriHaximus added a commit to WyriHaximus-labs/async that referenced this pull request

Feb 21, 2022
Since `async()` returns a promise and those are normally cancelable, implementing this puts them in line with the rest of our ecosystem. As such the following example will throw a timeout exception from the canceled `sleep()` call.
```php
$promise = async(static function (): int {
    echo 'a';
    await(sleep(2));
    echo 'b';
    return time();
})();
$promise->cancel();
await($promise);
````
This builds on top of reactphp#15, reactphp#18, reactphp#19, reactphp#26, reactphp#28, reactphp#30, and reactphp#32.

WyriHaximus added a commit to WyriHaximus-labs/async that referenced this pull request

Feb 24, 2022
Since `async()` returns a promise and those are normally cancelable, implementing this puts them in line with the rest of our ecosystem. As such the following example will throw a timeout exception from the canceled `sleep()` call.
```php
$promise = async(static function (): int {
    echo 'a';
    await(sleep(2));
    echo 'b';
    return time();
})();
$promise->cancel();
await($promise);
````
This builds on top of reactphp#15, reactphp#18, reactphp#19, reactphp#26, reactphp#28, reactphp#30, and reactphp#32.

WyriHaximus added a commit to WyriHaximus-labs/async that referenced this pull request

Feb 24, 2022
Since `async()` returns a promise and those are normally cancelable, implementing this puts them in line with the rest of our ecosystem. As such the following example will throw a timeout exception from the canceled `sleep()` call.
```php
$promise = async(static function (): int {
    echo 'a';
    await(sleep(2));
    echo 'b';
    return time();
})();
$promise->cancel();
await($promise);
````
This builds on top of reactphp#15, reactphp#18, reactphp#19, reactphp#26, reactphp#28, reactphp#30, and reactphp#32.

WyriHaximus added a commit to WyriHaximus-labs/async that referenced this pull request

Mar 2, 2022
Since `async()` returns a promise and those are normally cancelable, implementing this puts them in line with the rest of our ecosystem. As such the following example will throw a timeout exception from the canceled `sleep()` call.
```php
$promise = async(static function (): int {
    echo 'a';
    await(sleep(2));
    echo 'b';
    return time();
})();
$promise->cancel();
await($promise);
````
This builds on top of reactphp#15, reactphp#18, reactphp#19, reactphp#26, reactphp#28, reactphp#30, and reactphp#32.

WyriHaximus added a commit to WyriHaximus-labs/async that referenced this pull request

Mar 3, 2022
Since `async()` returns a promise and those are normally cancelable, implementing this puts them in line with the rest of our ecosystem. As such the following example will throw a timeout exception from the canceled `sleep()` call.
```php
$promise = async(static function (): int {
    echo 'a';
    await(sleep(2));
    echo 'b';
    return time();
})();
$promise->cancel();
await($promise);
````
This builds on top of reactphp#15, reactphp#18, reactphp#19, reactphp#26, reactphp#28, reactphp#30, and reactphp#32.

WyriHaximus added a commit to WyriHaximus-labs/async that referenced this pull request

Mar 3, 2022
Since `async()` returns a promise and those are normally cancelable, implementing this puts them in line with the rest of our ecosystem. As such the following example will throw a timeout exception from the canceled `sleep()` call.
```php
$promise = async(static function (): int {
    echo 'a';
    await(sleep(2));
    echo 'b';
    return time();
})();
$promise->cancel();
await($promise);
````
This builds on top of reactphp#15, reactphp#18, reactphp#19, reactphp#26, reactphp#28, reactphp#30, and reactphp#32.

WyriHaximus added a commit to WyriHaximus-labs/async that referenced this pull request

Mar 4, 2022
Since `async()` returns a promise and those are normally cancelable, implementing this puts them in line with the rest of our ecosystem. As such the following example will throw a timeout exception from the canceled `sleep()` call.
```php
$promise = async(static function (): int {
    echo 'a';
    await(sleep(2));
    echo 'b';
    return time();
})();
$promise->cancel();
await($promise);
````
This builds on top of reactphp#15, reactphp#18, reactphp#19, reactphp#26, reactphp#28, reactphp#30, and reactphp#32.

WyriHaximus added a commit to WyriHaximus-labs/async that referenced this pull request

Mar 4, 2022
Since `async()` returns a promise and those are normally cancelable, implementing this puts them in line with the rest of our ecosystem. As such the following example will throw a timeout exception from the canceled `sleep()` call.
```php
$promise = async(static function (): int {
    echo 'a';
    await(sleep(2));
    echo 'b';
    return time();
})();
$promise->cancel();
await($promise);
````
This builds on top of reactphp#15, reactphp#18, reactphp#19, reactphp#26, reactphp#28, reactphp#30, and reactphp#32.

Closed

@clue clue mentioned this pull request

Jun 23, 2022

Merged

@clue clue mentioned this pull request

Oct 26, 2022

Open

Read the original on github.com ↗