Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 662 Bytes

frompromise.md

File metadata and controls

19 lines (11 loc) · 662 Bytes

Converts a Promises/A+ spec compliant Promise and/or ES2015 compliant Promise to an Observable sequence.

Arguments

  1. promise (Promise): Promises/A+ spec compliant Promise to an Observable sequence.

Returns

(Observable): An Observable sequence which wraps the existing promise success and failure.

Example

Create a promise which resolves 42

Create a promise which rejects with an error