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
Currently, Einigeln is fully synchronous. This could be changed with some additional API parameters.
Example:
di.set('foo',function(container,resolve){// Not returning any value here, so Einigeln will assume resolve will be called when ready.setTimeout(function(){resolve(newFoo(container.get('bar')));},1000);});
The additional API Call:
di.getAsync('foo').then(console.log);
For such a feature, get() needs to realize when a service used returnand when it using resolve.
So kind of a Map with a flag for each service if it is async needs to be added. Depending on that flag either get or getAsync will access each other on behalf.
The text was updated successfully, but these errors were encountered:
Currently, Einigeln is fully synchronous. This could be changed with some additional API parameters.
Example:
The additional API Call:
For such a feature,
get()
needs to realize when a service usedreturn
and when it usingresolve
.So kind of a Map with a flag for each service if it is async needs to be added. Depending on that flag either
get
orgetAsync
will access each other on behalf.The text was updated successfully, but these errors were encountered: