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