Opened 2 years ago
Last modified 6 weeks ago
#33882 assigned New feature
async transaction.atomic — at Initial Version
Reported by: | alex | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 4.0 |
Severity: | Normal | Keywords: | async |
Cc: | Hugo Osvaldo Barrera, rajdesai24, Moritz Ulmer, Tyson Clugg, Julien Enselme | Triage Stage: | Accepted |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Wouldn't it be possible to add something like:
aenter = sync_to_async(Atomic.enter, thread_sensitive=True)
aexit = sync_to_async(Atomic.exit, thread_sensitive=True)
to the Atomic class to support async calls?
Note:
See TracTickets
for help on using tickets.