You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fact that a promise can also be rejected with a Throwable and/or Exception is implied and there is no need to also define that here.
Refs: reactphp/promise#223
The `first(ReadableStreamInterface|WritableStreamInterface $stream, string $event = 'data'): PromiseInterface<mixed,RuntimeException>` function can be used to
87
+
The `first(ReadableStreamInterface|WritableStreamInterface $stream, string $event = 'data'): PromiseInterface<mixed>` function can be used to
88
88
create a `Promise` which will be fulfilled once the given event triggers for the first time.
89
89
90
90
```php
@@ -114,7 +114,7 @@ The promise will be rejected with a `RuntimeException` if it is cancelled.
114
114
115
115
### all()
116
116
117
-
The `all(ReadableStreamInterface|WritableStreamInterface $stream, string $event = 'data'): PromiseInterface<array,RuntimeException>` function can be used to
117
+
The `all(ReadableStreamInterface|WritableStreamInterface $stream, string $event = 'data'): PromiseInterface<array>` function can be used to
118
118
create a `Promise` which will be fulfilled with an array of all the event data.
119
119
120
120
```php
@@ -140,7 +140,7 @@ The promise will be rejected with a `RuntimeException` if it is cancelled.
140
140
141
141
### unwrapReadable()
142
142
143
-
The `unwrapReadable(PromiseInterface<ReadableStreamInterface<T>,Exception> $promise): ReadableStreamInterface<T>` function can be used to
143
+
The `unwrapReadable(PromiseInterface<ReadableStreamInterface<T>> $promise): ReadableStreamInterface<T>` function can be used to
144
144
unwrap a `Promise` which will be fulfilled with a `ReadableStreamInterface<T>`.
145
145
146
146
This function returns a readable stream instance (implementing `ReadableStreamInterface<T>`)
@@ -197,7 +197,7 @@ $loop->addTimer(2.0, function () use ($stream) {
197
197
198
198
### unwrapWritable()
199
199
200
-
The `unwrapWritable(PromiseInterface<WritableStreamInterface<T>,Exception> $promise): WritableStreamInterface<T>` function can be used to
200
+
The `unwrapWritable(PromiseInterface<WritableStreamInterface<T>> $promise): WritableStreamInterface<T>` function can be used to
201
201
unwrap a `Promise` which will be fulfilled with a `WritableStreamInterface<T>`.
202
202
203
203
This function returns a writable stream instance (implementing `WritableStreamInterface<T>`)
0 commit comments