Skip to content

Commit 3b7c790

Browse files
authored
Concurrency check should include session.last_bookmarks (#1004)
1 parent 88a6bfa commit 3b7c790

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/neo4j/_async/work/session.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ async def last_bookmark(self) -> t.Optional[str]:
353353
return self._bookmarks[-1]
354354
return None
355355

356+
@AsyncNonConcurrentMethodChecker.non_concurrent_method
356357
async def last_bookmarks(self) -> Bookmarks:
357358
"""Return most recent bookmarks of the session.
358359

src/neo4j/_sync/work/session.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ def last_bookmark(self) -> t.Optional[str]:
353353
return self._bookmarks[-1]
354354
return None
355355

356+
@NonConcurrentMethodChecker.non_concurrent_method
356357
def last_bookmarks(self) -> Bookmarks:
357358
"""Return most recent bookmarks of the session.
358359

0 commit comments

Comments
 (0)