Skip to content

Commit b469819

Browse files
committed
Remove mention about Awaitable not resolvable with itself
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).
1 parent 5ca4d00 commit b469819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Any implementation MUST at least provide these two parameters. The implementatio
7474
7575
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.
7676

77-
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.
77+
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`.
7878

7979
## Contributors
8080

0 commit comments

Comments
 (0)