()
| 664 | // The command, unlike its stream, reports when the server is done with the |
| 665 | // statement, even after the stream has been destroyed. |
| 666 | const settle = () => { |
| 667 | if (statement.settle()) Effect.runSync(release) |
| 668 | } |
| 669 | command.once("end", settle) |
| 670 | command.once("error", settle) |
| 671 |