Returns a Promise which resolves when the condition returns true or rejects when the condition returns undefined or is rejecting it self.
Description
Observes an Observable and returns a Promise that resolves when the condition returns true. If the condition returns undefined or rejects, the Promise will reject with the current value.
observationAsPromise