From 320c6d30f5d56d33c1ed37f6d0f875fcd3a39480 Mon Sep 17 00:00:00 2001 From: Heyang Zhou Date: Wed, 17 May 2023 12:18:47 +0800 Subject: [PATCH] fix(kv): kv.close() interrupts in-flight operations (#19076) Fixes https://github.com/denoland/deno/issues/19049 --- cli/tsc/dts/lib.deno.unstable.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts index e70d508200..3a4344bd8b 100644 --- a/cli/tsc/dts/lib.deno.unstable.d.ts +++ b/cli/tsc/dts/lib.deno.unstable.d.ts @@ -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; + close(): void; } /** **UNSTABLE**: New API, yet to be vetted.