Class that behaves like a promise (es6), but is synchronous. Implements then
and catch
functions. After instantiating can be used similar to standard Promises but synchronously. As soon as one of the callback functions returns a Promise the asynchronous Promise replaces the FakePromise in further processing.
new sap.ui.fl.Utils.FakePromise(vInitialValue, vError, sInitialPromiseIdentifier)
Param | Type | Default Value | Description |
---|---|---|---|
vInitialValue | any | value on resolve FakePromise |
|
vError | any | value on reject FakePromise |
|
sInitialPromiseIdentifier | string | value identifies previous promise in chain. If the identifier is passed to the function and don't match with the FakePromiseIdentifier then native Promise execution is used for further processing |