Skip to content

Commit

Permalink
Remove mention about Awaitable not resolvable with itself
Browse files Browse the repository at this point in the history
This is especially problematic to enforce if we get circular resolutions (i.e. Awaitable 1 is resolved with Awaitable 2 which in turn is resolved with Awaitable 1). In this case it is better to just outright rely on implicit behavior (i.e. recursion).
  • Loading branch information
bwoebi committed May 30, 2016
1 parent 5ca4d00 commit b469819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Any implementation MUST at least provide these two parameters. The implementatio
All registered callbacks MUST be executed in the order they were registered. If one of the callbacks throws an `Exception` or `Throwable`, it MUST be rethrown in a callable passed to `Loop::defer` so `Loop::onError` can be properly invoked by the loop. `Loop` refers to the [global event loop accessor](https://github.com/async-interop/event-loop/blob/master/src/Loop.php). The `Awaitable` implementation MUST then continue to call the remaining callbacks with the original parameters.

If an `Awaitable` is resolved with another `Awaitable`, the `Awaitable` MUST keep in pending state until the passed `Awaitable` is resolved. Thus, the value of an `Awaitable` can never be an `Awaitable`. An `Awaitable` MUST NOT be resolved with itself.
If an `Awaitable` is resolved with another `Awaitable`, the `Awaitable` MUST keep in pending state until the passed `Awaitable` is resolved. Thus, the value of an `Awaitable` can never be an `Awaitable`.

## Contributors

Expand Down

0 comments on commit b469819

Please sign in to comment.