Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
May 17, 2023
Merged

Conversation

losfair
Copy link
Member

@losfair losfair commented May 10, 2023

Fixes #19049

@losfair losfair requested a review from lucacasonato May 10, 2023 15:18
Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@losfair losfair merged commit 320c6d3 into main May 17, 2023
@losfair losfair deleted the fix-kv-close-doc branch May 17, 2023 04:18
Comment on lines 2051 to 2057
/**
* 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;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The updated JSDoc describes a significant difference in behavior, and I don't see any associated runtime changes. Was the description simply incorrect before?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jsejcksn yes, somehow it slipped through the cracks during the review.

mmyoji added a commit to mmyoji/bookmark that referenced this pull request May 19, 2023
mmyoji added a commit to mmyoji/bookmark that referenced this pull request May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kv#close() does not return a Promise
4 participants