Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Asio] Introduce Async I/O component #161

Closed
wants to merge 18 commits into from
Closed

[Asio] Introduce Async I/O component #161

wants to merge 18 commits into from

Conversation

azjezz
Copy link
Owner

@azjezz azjezz commented Mar 20, 2021

No description provided.

@azjezz azjezz force-pushed the asio branch 4 times, most recently from 54cf6f4 to 345197d Compare March 21, 2021 07:41

final class TimeoutException extends Exception\RuntimeException implements ExceptionInterface
{
public function __construct(string $message = 'operation timed out.', int $code = 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the exception expose how long it took?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably, will see ( this PR is not getting merged until PHP 8.1 is released, so there's still time to change the API 😛 )

Comment on lines 5 to 10
if (false) {
final class Fiber
{
public function __construct(callable $c)
{
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: remove stub before merge

@azjezz azjezz force-pushed the asio branch 3 times, most recently from 8b308c5 to c5cc9f4 Compare March 28, 2021 08:41
*
* @internal
*/
public function onJoin(callable $callable): void;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does this method name come from?
In amp, they use on resolve, which is more clear IMO.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method ( maybe the whole class? ) is going to be removed soon thanks to some clever work by @:trowski and @:kelunik.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Is it a loop / promise rfc to php-src perhaps? ;)

@azjezz azjezz closed this Oct 30, 2021
@azjezz azjezz deleted the asio branch October 30, 2021 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants