* * @param {() => T} fn * @param {(update: () => void) => void} onsubscribe
(fn, onsubscribe)
| 13 | * @param {(update: () => void) => void} onsubscribe |
| 14 | */ |
| 15 | constructor(fn, onsubscribe) { |
| 16 | this.#fn = fn; |
| 17 | this.#subscribe = createSubscriber(onsubscribe); |
| 18 | } |
| 19 | |
| 20 | get current() { |
| 21 | this.#subscribe(); |
nothing calls this directly
no test coverage detected