1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

fix(kv): kv.close() interrupts in-flight operations (#19076)

Fixes https://github.com/denoland/deno/issues/19049
This commit is contained in:
Heyang Zhou 2023-05-17 12:18:47 +08:00 committed by GitHub
parent cb87cb0283
commit 320c6d30f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2051,10 +2051,10 @@ declare namespace Deno {
/**
* Close the database connection. This will prevent any further operations
* from being performed on the database, but will wait for any in-flight
* operations to complete before closing the underlying database connection.
* from being performed on the database, and interrupt any in-flight
* operations immediately.
*/
close(): Promise<void>;
close(): void;
}
/** **UNSTABLE**: New API, yet to be vetted.