async-injector icon indicating copy to clipboard operation
async-injector copied to clipboard

Figure out an ergonomic way to install Providers

Open udoprog opened this issue 5 years ago • 0 comments

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).

udoprog avatar Jul 30 '19 18:07 udoprog