(
encode: EncodeCycle,
output: Output,
cache: PreparedCache | undefined
)
| 1055 | |
| 1056 | // Check the lease under the wire permit so queued work cannot run after release. |
| 1057 | private cycle( |
| 1058 | encode: EncodeCycle, |
| 1059 | output: Output, |
| 1060 | cache: PreparedCache | undefined |
| 1061 | ): Effect.Effect<QueryOutput, SqlError> { |
| 1062 | return this.base.wire.withPermit(Effect.suspend(() => |
| 1063 | this.released |
| 1064 | ? Effect.fail(pinReleasedError()) |
| 1065 | : this.base.cycleOwned(encode, output, cache) |
| 1066 | )) |
| 1067 | } |
| 1068 | |
| 1069 | readonly interrupt: Effect.Effect<void> = Effect.suspend(() => this.released ? Effect.void : this.base.cancel) |
| 1070 |
no test coverage detected