Commits
Click on a commit to change the comparison rangefix async task transaction rollback from sync task
this PR fixes a bug where submitting an async task from within a sync task
would fail with "object bool can't be used in 'await' expression" when the
async task raised an exception.
<details>
<summary>details</summary>
the issue occurred in `AsyncTransaction.reset()` when rolling back a failed
transaction. when an async task is submitted from within a sync task, the parent
transaction is a sync `Transaction` (not an `AsyncTransaction`). the code tried
to `await parent.rollback()`, but since the parent is sync, its `rollback()`
method returns a `bool`, which can't be awaited.
the fix checks if the parent is an `AsyncTransaction` before awaiting,
following the same pattern used in `AsyncTransaction.rollback()` when handling
children transactions.
</details>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>