(effect: Effect.Effect<A, E, R>)
| 309 | }) |
| 310 | |
| 311 | const authorize = <A, E, R>(effect: Effect.Effect<A, E, R>) => |
| 312 | effect.pipe(Effect.mapError((cause) => new AuthorizationError({ cause }))) |
| 313 | |
| 314 | const close = (attemptScope: Scope.Closeable) => |
| 315 | Scope.close(attemptScope, Exit.void).pipe(Effect.forkIn(scope, { startImmediately: true }), Effect.asVoid) |