We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c20ea46 commit e644a35Copy full SHA for e644a35
docs/README.md
@@ -124,6 +124,18 @@ async function* List() {
124
export default Coroutine.create(List);
125
```
126
127
+Async iterators allow you to yield new UI pieces over the time, without the need to re-render a component by parent element.
128
+
129
+```javascript
130
+async function* EventStreamContainer() {
131
+ for await (const message of dispatcher) {
132
+ yield <p>Last message {message.type}</p>;
133
+ }
134
+}
135
136
+export default Coroutine.create(EventStreamContainer);
137
+```
138
139
## Testing
140
141
Please read the [testing guide](./Testing.md).
0 commit comments