Provides a caching mechanism for promises. This API features Promise cancellation: resolve or reject handlers won't be called after removal of the promise, cache destruction or manual cancellation. Destroying the cache will cancel all registered promises and delete references. Convenience methods for promise creation, wrapping and replacement are offered.
Node | Description |
---|
Method | Description |
---|---|
sap.ui.mdc.util.PromiseCache.extend |
Creates a new subclass of class sap.ui.mdc.util.PromiseCache with name
|
sap.ui.mdc.util.PromiseCache.getMetadata |
Returns a metadata object for class sap.ui.mdc.util.PromiseCache. |
Creates a new subclass of class sap.ui.mdc.util.PromiseCache with name sClassName
and enriches it with the information contained in oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.ui.base.Object.extend.
Param | Type | DefaultValue | Description |
---|---|---|---|
sClassName | string |
Name of the class being created |
|
oClassInfo | object |
Object literal with information about the class |
|
FNMetaImpl | function |
Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class |
Returns a metadata object for class sap.ui.mdc.util.PromiseCache.
Param | Type | DefaultValue | Description |
---|