(value)
| 134 | } |
| 135 | |
| 136 | async function changeToAsyncValues(value) { |
| 137 | isAsyncValues = true; |
| 138 | |
| 139 | try { |
| 140 | const res = await value; |
| 141 | |
| 142 | if (res === null) { |
| 143 | reading = false; |
| 144 | throw new ERR_STREAM_NULL_VALUES(); |
| 145 | } |
| 146 | |
| 147 | if (readable.push(res)) { |
| 148 | nextSyncWithAsyncValues(); |
| 149 | return; |
| 150 | } |
| 151 | |
| 152 | reading = false; |
| 153 | } catch (err) { |
| 154 | readable.destroy(err); |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | async function nextSyncWithAsyncValues() { |
| 159 | for (;;) { |
no test coverage detected
searching dependent graphs…