Mykhailo Havelia

Results 24 issues of Mykhailo Havelia

I have a problem with async database connections for `Django` `TestCase`. The psycopg3 connection is not thread-safe. As a result, I need to create a new connection per thread. This...

#### Trac ticket number [ticket-36714](https://code.djangoproject.com/ticket/36714) #### Branch description Async signals lose `ContextVar` state due to use of `asyncio.gather`. Fixed it by sharing a context between tasks. Related MR - https://github.com/django/asgiref/pull/536...

Introduce a draft proposal for the Hybrid Signal handler, which allows defining separate sync and async implementations for signal receivers to improve performance and simplify mixed context execution.