You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After we have asynchronous injection (#25), the old .eagerlyLoadAll(...) doesn't make as much sense. Instead, this is our opportunity to "bootstrap" the whole shebang (probably the whole application). It should try to load all injectables, resolve all promises as needed, and return an object holding the fully bootstrapped set of components.
constanInstance=Promise.resolve({})// Promises will be resolvedconstbind=pluto()bind('myInstance').toInstance(anInstance)// ... eagerly load everything. Maybe `.bootstrap()`?constapp=yieldbind.eagerlyLoadAll()// ...and then everything can be retrieved synchronouslyt.is(app.get('myInstance'),anInstance)
The text was updated successfully, but these errors were encountered:
After we have asynchronous injection (#25), the old
.eagerlyLoadAll(...)
doesn't make as much sense. Instead, this is our opportunity to "bootstrap" the whole shebang (probably the whole application). It should try to load all injectables, resolve all promises as needed, and return an object holding the fully bootstrapped set of components.The text was updated successfully, but these errors were encountered: