feat: implement async mode for instance/provide annotations

This commit is contained in:
Sergey Penkovsky
2025-05-21 11:05:18 +03:00
parent ad6522856a
commit 1bdcc71534
2 changed files with 29 additions and 6 deletions

View File

@@ -24,6 +24,14 @@ abstract class AppModule extends Module {
@named('baseUrl')
String baseUrl() => "https://google.com";
@provide()
@named('Delay1')
Future<int> delay1() => Future.value(1000);
@provide()
@named('Size1')
Future<int> size1() async => 10;
@provide()
@singleton()
@named('dio')