Simplify usage by supporting new default loop by clue · Pull Request #260 · reactphp/socket · GitHub
Skip to content

Simplify usage by supporting new default loop#260

Merged
clue merged 2 commits into
reactphp:masterfrom
clue-labs:default-loop
Jul 11, 2021
Merged

Simplify usage by supporting new default loop#260
clue merged 2 commits into
reactphp:masterfrom
clue-labs:default-loop

Conversation

@clue

@clue clue commented Jul 8, 2021

Copy link
Copy Markdown
Member

This changeset simplifies usage by supporting the new default loop.

// old (still supported)
$socket = new React\Socket\Server('127.0.0.1:8080', $loop);
$connector = new React\Socket\Connector($loop);

// new (using default loop)
$socket = new React\Socket\Server('127.0.0.1:8080');
$connector = new React\Socket\Connector();

Builds on top of reactphp/event-loop#226, reactphp/event-loop#229, reactphp/event-loop#232, reactphp/stream#159 and reactphp/dns#182

@clue clue added this to the v1.8.0 milestone Jul 8, 2021
@clue clue changed the title Simplify usage by supporting new default loop [WIP] Simplify usage by supporting new default loop Jul 8, 2021
@clue clue force-pushed the default-loop branch 3 times, most recently from 3c57fd1 to d52ab10 Compare July 8, 2021 14:08
@clue

clue commented Jul 8, 2021

Copy link
Copy Markdown
Member Author

@clue clue changed the title [WIP] Simplify usage by supporting new default loop Simplify usage by supporting new default loop Jul 11, 2021
@clue

clue commented Jul 11, 2021

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants