Giter Site home page Giter Site logo

Comments (5)

ByteAlex avatar ByteAlex commented on July 24, 2024 1

Glad to hear that it solves the points you were missing!
Thank you for your feedback!

from cache-loader-async-rs.

Dessix avatar Dessix commented on July 24, 2024

Additionally, it would be a nice benefit to allow generic parameterization of errors, such that an error in cache loading can be passed back to the caller with a known type.

from cache-loader-async-rs.

ByteAlex avatar ByteAlex commented on July 24, 2024

Hello @Dessix,
sorry I haven't seen your issue yet. I've started an implementation which handles errors in the loader. I'll see if it makes sense to extend it by a generic error parameter!

from cache-loader-async-rs.

ByteAlex avatar ByteAlex commented on July 24, 2024

Your suggestion made me clean up a lot of the error handling and I implemented a solution in #5, would you please check if that fits your requirements? :)

from cache-loader-async-rs.

Dessix avatar Dessix commented on July 24, 2024

It looks like it does all of what I wanted.
Potentially, a few helpers for the CacheLoadingError type may be warranted, such as into_loading_error(self) -> Option<E> / as_loading_error(&self) -> Option<&E> helpers. (This comment has been added to the PR as well, so you can close it there).

from cache-loader-async-rs.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.