* @param {string | (() => Promise<string>)} content
(content)
| 425 | * @param {string | (() => Promise<string>)} content |
| 426 | */ |
| 427 | push(content) { |
| 428 | if (typeof content === 'function') { |
| 429 | this.child(async (renderer) => renderer.push(await content())); |
| 430 | } else { |
| 431 | this.#out.push(content); |
| 432 | } |
| 433 | } |
| 434 | |
| 435 | /** |
| 436 | * @param {() => void} fn |