(private readonly options: LearnClientOptions)
| 79 | private hasLoadedPersistentCache = false; |
| 80 | |
| 81 | constructor(private readonly options: LearnClientOptions) { |
| 82 | this.endpoint = new URL(options.endpoint); |
| 83 | this.cacheStore = options.cacheStore ?? createFileLearnSessionCacheStore(); |
| 84 | this.fetchImpl = options.fetchImpl ?? globalThis.fetch.bind(globalThis); |
| 85 | this.client = options.createSdkClient?.() ?? this.createDefaultSdkClient(); |
| 86 | } |
| 87 | |
| 88 | async close(): Promise<void> { |
| 89 | if (!this.transport) { |
nothing calls this directly
no test coverage detected