()
| 212 | }; |
| 213 | |
| 214 | export const startBuffering = () => { |
| 215 | if (isBuffering) { |
| 216 | throw new Error( |
| 217 | "Cannot buffer while already buffering"); |
| 218 | } |
| 219 | isBuffering = true; |
| 220 | }; |
| 221 | |
| 222 | const flushToArray = () => { |
| 223 | isBuffering = false; |
no outgoing calls
no test coverage detected