finally Method

Attaches a callback for only the finally clause of the Promise.

finally(onFinally?: | () => void): Promise<T>

@returns A Promise for the completion of the callback.

Parameter Type Description
onFinally | () => void  

Returns - Promise<T>

A Promise for the completion of the callback.

Defined in

Last Updated: 16 April, 2024