import { asyncSingleton } from "https://deno.land/x/lambda_ioc@1.0.0/lambda-ioc/deno/index.ts";
Given a dependency factory, returns a new asynchronous factory that will always resolve the same instance of the dependency.
Parameters
factory: AsyncDependencyFactory<TVal, ReadableContainer<TSyncDependencies, TAsyncDependencies>>
Returns
AsyncDependencyFactory<TVal, ReadableContainer<TSyncDependencies, TAsyncDependencies>>