@@ -83,8 +83,8 @@ See also the [examples](examples).
83
83
84
84
## Usage
85
85
86
- As of ` v1.2.0 ` , typical applications would use the [ ` Loop ` object ] ( #loop )
87
- to use the currently active event loop like this:
86
+ Typical applications would use the [ ` Loop ` class ] ( #loop ) to use the default
87
+ event loop like this:
88
88
89
89
``` php
90
90
use React\EventLoop\Loop;
@@ -123,14 +123,14 @@ In both cases, the program would perform the exact same steps.
123
123
124
124
1 . The event loop instance is created at the beginning of the program. This is
125
125
implicitly done the first time you call the [ ` Loop ` class] ( #loop ) or
126
- explicitly when using the deprecated [ ` Factory::create() method ` ] ( #create )
126
+ explicitly when using the deprecated [ ` Factory::create() ` method] ( #create )
127
127
(or manually instantiating any of the [ loop implementations] ( #loop-implementations ) ).
128
128
2 . The event loop is used directly or passed as an instance to library and
129
129
application code. In this example, a periodic timer is registered with the
130
130
event loop which simply outputs ` Tick ` every fraction of a second until another
131
131
timer stops the periodic timer after a second.
132
132
3 . The event loop is run at the end of the program. This is automatically done
133
- when using [ ` Loop ` class] ( #loop ) or explicitly with a single [ ` run() ` ] ( #run )
133
+ when using the [ ` Loop ` class] ( #loop ) or explicitly with a single [ ` run() ` ] ( #run )
134
134
call at the end of the program.
135
135
136
136
As of ` v1.2.0 ` , we highly recommend using the [ ` Loop ` class] ( #loop ) .
@@ -434,8 +434,8 @@ This event loop does only work with PHP 5.
434
434
An [ unofficial update] ( https://github.com/php/pecl-event-libevent/pull/2 ) for
435
435
PHP 7 does exist, but it is known to cause regular crashes due to ` SEGFAULT ` s.
436
436
To reiterate: Using this event loop on PHP 7 is not recommended.
437
- Accordingly, neither the [ ` Loop ` object ] ( #loop ) nor the deprecated
438
- [ ` Factory ` ] ( #factory ) will try to use this event loop on PHP 7.
437
+ Accordingly, neither the [ ` Loop ` class ] ( #loop ) nor the deprecated
438
+ [ ` Factory ` class ] ( #factory ) will try to use this event loop on PHP 7.
439
439
440
440
This event loop is known to trigger a readable listener only if
441
441
the stream * becomes* readable (edge-triggered) and may not trigger if the
0 commit comments