Community
Participate
Working Groups
Currently ServiceRegistry.getService(...) returns a promise instead of the service or null as with OSGi. At the time I thought this was clever because it meant we effectively had a ServiceTracker built right in. With experience I can see now that OSGi got the abstraction right and it's not helpful and actually causes us to take advantage of an implementation detail of dojo.Deferred when we want the service immediately. ServiceRegistry.getService(...) should either return the Service or null immediately just like how it does with OSGi.
I thought we took advantage of this asynchronous behaviour to avoid being sensitive to script load ordering differences. I guess we'll find out when you try changing it...
If you're looking for the code you wrote for this bug, ping Susan ;)
Fixed in b2ca594c1adbf7494819a8ea545f6b50dd737879