We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems the error message is wrong when a non-async dependency is added to the dependsOn list when using registerSingletonAsync.
dependsOn
registerSingletonAsync
e.g:
..registerSingletonAsync<MyAsyncService>( () => MyAsyncService()..init(), dependsOn: [ MySyncService, ], )
Would give:
Invalid argument(s): Dependent Type MySyncService is an async Singleton
In this case MySyncService is a non-async singleton.
MySyncService
It should probably read: "is not an async Singleton"
The text was updated successfully, but these errors were encountered:
Thanks for spotting. Fixed in next version
Sorry, something went wrong.
No branches or pull requests
It seems the error message is wrong when a non-async dependency is added to the
dependsOn
list when usingregisterSingletonAsync
.e.g:
Would give:
Invalid argument(s): Dependent Type MySyncService is an async Singleton
In this case
MySyncService
is a non-async singleton.It should probably read: "is not an async Singleton"
The text was updated successfully, but these errors were encountered: