* Progress the wrapped generator once.
()
| 130 | * Progress the wrapped generator once. |
| 131 | */ |
| 132 | public next() { |
| 133 | if (this.paused) { |
| 134 | return { |
| 135 | value: null, |
| 136 | done: false, |
| 137 | }; |
| 138 | } |
| 139 | |
| 140 | startThread(this); |
| 141 | const result = this.runner.next(this.value); |
| 142 | endThread(this); |
| 143 | this.value = null; |
| 144 | return result; |
| 145 | } |
| 146 | |
| 147 | /** |
| 148 | * Prepare the thread for the next update cycle. |
nothing calls this directly
no test coverage detected