Skip to content

Commit 3c7dfd6

Browse files
author
Greg Bowler
committed
docs: restyle org name
1 parent 53f636f commit 3c7dfd6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ There are many implementations of the concept of a `Promise`. This library aims
55

66
***
77

8-
<a href="https://github.com/PhpGt/Promise/actions" target="_blank">
8+
<a href="https://github.com/phpgt/Promise/actions" target="_blank">
99
<img src="https://badge.status.php.gt/promise-build.svg" alt="Build status" />
1010
</a>
1111
<a href="https://app.codacy.com/gh/PhpGt/Promise" target="_blank">
@@ -18,14 +18,14 @@ There are many implementations of the concept of a `Promise`. This library aims
1818
<img src="https://badge.status.php.gt/promise-version.svg" alt="Current version" />
1919
</a>
2020
<a href="http://www.php.gt/promise" target="_blank">
21-
<img src="https://badge.status.php.gt/promise-docs.svg" alt="PHP.Gt/Promise documentation" />
21+
<img src="https://badge.status.php.gt/promise-docs.svg" alt="PHP.GT/Promise documentation" />
2222
</a>
2323

2424
In computer science, a `Promise` is a mechanism that provides a simple and direct relationship between procedural code and asynchronous callbacks. Functions within procedural languages, like plain old PHP, have two ways they can affect your program's flow: either by returning values or throwing exceptions.
2525

2626
When working with functions that execute asynchronously, we can't return values because they might not be ready yet, and we can't throw exceptions because that's a procedural concept (where should we catch them?). That's where promises come in: instead of returning a value or throwing an exception, your functions can return a `Promise`, which is an object that can be _fulfilled_ with a value, or _rejected_ with an exception, but not necessarily at the point that they are returned.
2727

28-
With this concept, the actual work that calculates or loads the value required by your code can be _deferred_ to a task that executes asynchronously. Behind the scenes of PHP.Gt/Promise is a `Deferred` class that is used for exactly this.
28+
With this concept, the actual work that calculates or loads the value required by your code can be _deferred_ to a task that executes asynchronously. Behind the scenes of PHP.GT/Promise is a `Deferred` class that is used for exactly this.
2929

3030
Example usage
3131
-------------
@@ -120,7 +120,7 @@ Event loop
120120

121121
In order for this Promise library to be useful, some code has got to act as an event loop to call the deferred processes. This could be a simple while loop, but for real world tasks a more comprehensive loop system should be used.
122122

123-
The implementation of a Promise-based architecture is complex enough on its own, so the responsibility of an event loop library is maintained separately in [PHP.Gt/Async][gt-async].
123+
The implementation of a Promise-based architecture is complex enough on its own, so the responsibility of an event loop library is maintained separately in [PHP.GT/Async][gt-async].
124124

125125
Special thanks
126126
--------------

0 commit comments

Comments
 (0)