The Loop class exists as a convenient global accessor for the event loop.
It provides all methods that exist on the LoopInterface as static methods and
will automatically execute the loop at the end of the program:
Loop::addTimer(1.0, function () use ($timer) {
Loop::cancelTimer($timer);
echo 'Done' . PHP_EOL;
});
The explicit loop instructions are still valid and may still be useful in some applications,
especially for a transition period towards the more concise style.
The Loop::get() method can be used to get the currently active event loop instance.
Improve test suite, use GitHub actions for continuous integration (CI),
update PHPUnit config and run tests on PHP 8.
(#212 and #215 by @SimonFrings and #230 by @clue)
The Loop class exists as a convenient global accessor for the event loop.
It provides all methods that exist on the LoopInterface as static methods and
will automatically execute the loop at the end of the program:
Loop::addTimer(1.0, function () use ($timer) {
Loop::cancelTimer($timer);
echo 'Done' . PHP_EOL;
});
The explicit loop instructions are still valid and may still be useful in some applications,
especially for a transition period towards the more concise style.
The Loop::get() method can be used to get the currently active event loop instance.
Improve test suite, use GitHub actions for continuous integration (CI),
update PHPUnit config and run tests on PHP 8.
(#212 and #215 by @SimonFrings and #230 by @clue)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps react/event-loop from 1.1.1 to 1.2.0.
Release notes
Sourced from react/event-loop's releases.
Changelog
Sourced from react/event-loop's changelog.
Commits
be6dee4
Prepare v1.2.0 releasee3287d6
Merge pull request #234 from SimonFrings/readme181941f
Mark extensions deprecated and minor docs improvement3441b26
Merge pull request #235 from nhedger/patch-253d4ba0
Little typof52f930
Merge pull request #233 from nhedger/patch-26912b3e
Fix typo in docblock78f7f43
Merge pull request #232 from clue-labs/loop-autorun9712eea
Don't run loop automatically when explicitly calling stop()f0853b1
Don't run loop automatically when an uncaught exceptions occursDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)