async-injector
async-injector copied to clipboard
Figure out an ergonomic way to install Providers
Currently providers have to be explicitly driven by doing something like this:
runtime::spawn(async move {
DatabaseProvider::run(&injector).await;
});
It would be nice if we could associate this with the existing driver instead. But then the question would be how to handle errors (or if we should at all support fallible providers).