[bug] when fetch error
the source code

when the resource() error, my code return Promise.reject()
source code: #fetch -> await this.#promise no try...catch. Causes cache judgment error
Hey @lzsheng, sorry for replying so late. I'm not sure what you are trying to say, can you give an example? I'm also open for PRs.
I just immediately hit this bug while trying to use this project for the first time and writing my unit tests. The PR #8 has a unit test that demonstrates the problem.
When the fetch function returns an error, the error is being cached instead of retrying. You can clearly see in the code that there is no error handling on the await.
Fixed by #8