(effect: Effect.Effect<void>)
| 225 | ); |
| 226 | |
| 227 | export const afterCommit = (effect: Effect.Effect<void>): Effect.Effect<void> => |
| 228 | Effect.flatMap(Effect.service(pendingCommitHooksRef), (hooks) => |
| 229 | hooks |
| 230 | ? Effect.sync(() => { |
| 231 | hooks.push(effect); |
| 232 | }) |
| 233 | : effect.pipe(Effect.ignoreCause({ log: false })), |
| 234 | ); |
| 235 | |
| 236 | class TransactionEffectFailure { |
| 237 | constructor(readonly error: unknown) {} |
no test coverage detected