Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Promise.prototype.finally is now stage 4!
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 24, 2018
1 parent e842a61 commit 1143ced
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Spec drafted by [@ljharb](https://github.com/ljharb), following the lead from th

Get the polyfill/shim on [npm](https://www.npmjs.com/package/promise.prototype.finally).

This proposal is currently [stage 3](https://github.com/tc39/proposals/blob/master/README.md) of the [process](https://tc39.github.io/process-document/).
This proposal is currently [stage 4](https://github.com/tc39/proposals/blob/master/finished-proposals.md) of the [process](https://tc39.github.io/process-document/).

## Rationale
Many promise libraries have a "finally" method, for registering a callback to be invoked when a promise is settled (either fulfilled, or rejected). The essential use case here is cleanup - I want to hide the "loading" spinner on my AJAX request, or I want to close any file handles I’ve opened, or I want to log that an operation has completed regardless of whether it succeeded or not.
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2148,7 +2148,7 @@
</div>
</div>
<div id="spec-container">
<h1 class="version first">Stage 3 Draft / January 2, 2018</h1>
<h1 class="version first">Stage 4 Draft / January 24, 2018</h1>
<h1 class="title">Promise.prototype.finally</h1>

<emu-clause id="sec-promise.prototype.finally">
Expand Down
2 changes: 1 addition & 1 deletion spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<script src="./spec.js"></script>
<pre class="metadata">
title: Promise.prototype.finally
stage: 3
stage: 4
contributors: Jordan Harband
</pre>

Expand Down

0 comments on commit 1143ced

Please sign in to comment.