Comments (5)
Glad to hear that it solves the points you were missing!
Thank you for your feedback!
from cache-loader-async-rs.
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.
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cache-loader-async-rs.