Skip to content

Commit 49491cb

Browse files
committed
Move general description back to top and use short introduction for usage
1 parent 2090e91 commit 49491cb

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

66
Event loop abstraction layer that libraries can use for evented I/O.
77

8+
In order for async based libraries to be interoperable, they need to use the
9+
same event loop. This component provides a common `LoopInterface` that any
10+
library can target. This allows them to be used in the same loop, with one
11+
single `run()` call that is controlled by the user.
12+
813
> The master branch contains the code for the upcoming 0.5 release.
914
For the code of the current stable 0.4.x release, checkout the
1015
[0.4 branch](https://github.com/reactphp/event-loop/tree/0.4).
@@ -53,10 +58,8 @@ $loop->run();
5358

5459
## Usage
5560

56-
In order for async based libraries to be interoperable, they need to use the
57-
same event loop. This component provides a common `LoopInterface` that any
58-
library can target. This allows them to be used in the same loop, with one
59-
single `run()` call that is controlled by the user.
61+
Typical applications use a single event loop which is created at the beginning
62+
and run at the end of the program.
6063

6164
```php
6265
// [1]

0 commit comments

Comments
 (0)