Properties (29)
Predicate | Object |
---|---|
gptkbp:instanceOf |
Function
|
gptkbp:countermeasures |
Does not block the execution of subsequent code.
|
gptkbp:description |
Returns_a_Promise_and_executes_a_specified_function_when_the_Promise_is_settled.
|
gptkbp:examples |
promise.finally(() => { console.log('Cleanup'); });
|
gptkbp:function |
The_function_passed_to_finally_is_called_regardless_of_the_Promise's_outcome.
|
gptkbp:handles |
Does_not_catch_errors_from_the_preceding_Promise.
|
gptkbp:hasNotableSong |
The_resolved_value_or_rejection_reason_of_the_Promise.
|
gptkbp:hasWebsite |
Supported in modern browsers.
|
https://www.w3.org/2000/01/rdf-schema#label |
Promise.prototype.finally
|
gptkbp:introduced |
ES2018
|
gptkbp:isOpenToPublic |
promise.then().finally().then()
|
gptkbp:language |
Promise.prototype.finally(onFinally)
|
gptkbp:mandates |
ECMAScript_Language_Specification.
|
gptkbp:multiplayer |
The onFinally function is executed asynchronously.
|
gptkbp:nesting |
Can_be_chained_with_other_Promise_methods.
|
gptkbp:publicPerception |
Does not catch errors thrown in the onFinally function.
|
gptkbp:relatedPatent |
gptkb:Promise.prototype.catch
Promise.prototype.then Used_for_cleanup_actions_after_a_Promise_is_settled. |
gptkbp:respondsTo |
Promise
|
gptkbp:returnPolicy |
The return value of the onFinally function is ignored.
Executed_after_the_Promise_is_settled. |
gptkbp:setting |
onFinally
|
gptkbp:shape |
Can be polyfilled for older environments.
|
gptkbp:state |
Can be called on fulfilled or rejected Promises.
|
gptkbp:type |
method
|
gptkbp:usedIn |
Used in Promise chains.
|
gptkbp:values |
Does not return the value of the onFinally function.
|
gptkbp:wasSupportedBy |
Internet Explorer.
|