Skip to content

Commit 4315979

Browse files
committed
fix: .finally() cannot invoke at keq request
1 parent 1f9c499 commit 4315979

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/core.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,5 +218,8 @@ export class Core<OUTPUT> {
218218
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<OUTPUT | TResult> {
219219
return this.end().catch(onrejected)
220220
}
221-
}
222221

222+
finally(onfinally?: (() => void) | undefined | null): Promise<OUTPUT> {
223+
return this.end().finally(onfinally)
224+
}
225+
}

0 commit comments

Comments
 (0)