(effect: Effect.Effect<void>)
| 106 | ); |
| 107 | |
| 108 | export const afterCommit = (effect: Effect.Effect<void>): Effect.Effect<void> => |
| 109 | Effect.flatMap(Effect.service(pendingCommitHooksRef), (hooks) => |
| 110 | hooks |
| 111 | ? Effect.sync(() => { |
| 112 | hooks.push(effect); |
| 113 | }) |
| 114 | : effect.pipe(Effect.ignoreCause({ log: false })), |
| 115 | ); |
| 116 | |
| 117 | class TransactionEffectFailure { |
| 118 | constructor(readonly error: unknown) {} |
no test coverage detected