Skip to content

Fix syntax error in AsyncDisposable example - #3629

Merged
Jake Bailey (jakebailey) merged 2 commits into
microsoft:v2from
MantasEdine:fix-variable-declarations
Aug 18, 2026
Merged

Fix syntax error in AsyncDisposable example#3629
Jake Bailey (jakebailey) merged 2 commits into
microsoft:v2from
MantasEdine:fix-variable-declarations

Conversation

@MantasEdine

Copy link
Copy Markdown
Contributor

The AsyncDisposable example in the variable declarations reference has a syntax error: const db = this.db: uses a colon instead of a semicolon, so the example doesn't compile.

Separately, I noticed the transfer function uses using tx on an async-disposable resource , should that be await using tx so the async disposal is actually awaited? Happy to include that fix too if you'd like !

@jakebailey

Copy link
Copy Markdown
Member

Yeah, I believe you're right on the second count, so I'd fix it

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Fixes the asynchronous disposal example so it compiles and correctly awaits transaction cleanup.

Changes:

  • Replaces an invalid colon with a semicolon.
  • Uses await using for the async-disposable transaction.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@jakebailey
Jake Bailey (jakebailey) enabled auto-merge (squash) August 18, 2026 17:50
@jakebailey
Jake Bailey (jakebailey) merged commit 90e92be into microsoft:v2 Aug 18, 2026
8 checks passed
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.

3 participants