WyriHaximus · GitHub

@WyriHaximus

Closed

@WyriHaximus

clue

@WyriHaximus

This makes `await`ing an already resolved promise significantly faster.

@WyriHaximus

clue

clue approved these changes Jan 5, 2022

@clue

@WyriHaximus

WyriHaximus deleted the fibers-fastforward-resolved-promise branch

January 10, 2022 07:32

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

Jan 10, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

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

Jan 10, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

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

Jan 10, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

This was referenced

Jan 10, 2022

Closed

Closed

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

Jan 14, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

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

Jan 17, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

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

Jan 17, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

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

Jan 25, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

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

Jan 25, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

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

Jan 25, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

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

Jan 25, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

@clue clue mentioned this pull request

Feb 10, 2022

Merged

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

Feb 11, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

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

Feb 11, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

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

Feb 11, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

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

Feb 11, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

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

Feb 11, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

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

Feb 11, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

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

Feb 11, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

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

Feb 11, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

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

Feb 11, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

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

Feb 11, 2022
This makes `await`ing an already resolved promise significantly faster.
Ported from: reactphp#18

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.

Read the original on github.com ↗