Skip to content
New issue

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

[DI/FEAT] Async provider #547

Closed
1 task done
Romakita opened this issue May 10, 2019 · 1 comment
Closed
1 task done

[DI/FEAT] Async provider #547

Romakita opened this issue May 10, 2019 · 1 comment

Comments

@Romakita
Copy link
Collaborator

Romakita commented May 10, 2019

Description

As a developer we want to declare Async Provider which return a promise. Injector must wait the promise resolution.

Breaking change: YES
Requirement: #548

Usage

registerProvider(Symbol.for('MyFactory'), {
   useAsyncFactory() { // new syntax
      return Promise.resolves() 
   }  
})

Acceptance criteria

  • DI waiting the promise resolution before build next dependencies
@Romakita
Copy link
Collaborator Author

🎉 This issue has been resolved in version 5.27.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant