Registers a creator function for a given key.
The key to associate with the creator function.
The creator function that returns the desired object or a promise resolving to the desired object.
Registers a creator function for a given key.