## toPromiseLast ```ts function toPromiseLast( subscribe: IObservable>, options?: IObservableToPromiseOptions ): Promise ``` Converts an Observable into a Promise. It's similar to [toPromiseAll](../all/to-promise-all.md) but returns the last received `next` value instead of an Array. ### Examples #### Simple http request ```ts toPromiseLast(fromFetch('https://some-url.site')) .then((response: Response) => { console.log(response.statusText); }); ``` #### Simple http request aborted ```ts const controller = new AbortController(); toPromiseLast(fromFetch('https://some-url.site'), { signal: controller.signal }) .then((response: Response) => { console.log(response.statusText); }); controller.abort(); // the request is properly aborted ```