Why use a promise vs an observable?

Often Observable is preferred over Promise because it provides the features of Promise and more . With Observable it doesn’t matter if you want to handle 0, 1, or multiple events. You can utilize the same API in each case. Observable also has the advantage over Promise to be cancellable.

Sizin İçin Seçtik  Will crypto mining ever end?

Leave a Reply

Your email address will not be published. Required fields are marked *