Skip to content

register with dependencies cause allReady future hangs forever once depend on lazy object #155

Closed
@goxiaoy

Description

@goxiaoy

Try following codes:

GetIt.I.registerLazySingletonAsync(() async=> A());
GetIt.I.registerSingletonWithDependencies(() => B(),dependsOn: [ A ]);

await GetIt.I.allReady();

current future will hang forever

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions