( options?: Undici.Agent.Options | undefined )
| 128 | * @since 4.0.5 |
| 129 | */ |
| 130 | export const makeDispatcherOptions = ( |
| 131 | options?: Undici.Agent.Options | undefined |
| 132 | ): Effect.Effect<Undici.Dispatcher, never, Scope.Scope> => |
| 133 | Effect.acquireRelease( |
| 134 | Effect.map(loadUndici, (_) => new _.Agent(options)), |
| 135 | (dispatcher) => Effect.promise(() => dispatcher.destroy()) |
| 136 | ) |
| 137 | |
| 138 | /** |
| 139 | * Acquires a new Undici `Agent` dispatcher and destroys it when the enclosing |
no test coverage detected