Dependency Resolution API
resolve<T>()
— Locates a dependency instance or throws if missing.resolveAsync<T>()
— Async variant for dependencies requiring async binding.tryResolve<T>()
— Returnsnull
if not found (sync).tryResolveAsync<T>()
— Returnsnull
async if not found.
Supports:
- Synchronous and asynchronous dependencies
- Named dependencies
- Provider functions with and without runtime parameters