]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Possibly send a Ready.RW value to generators waiting on RW 120/head
authorDenis Laxalde <denis.laxalde@dalibo.com>
Tue, 12 Oct 2021 13:40:36 +0000 (15:40 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 16 Nov 2021 10:28:18 +0000 (11:28 +0100)
commit4cf0450c5204429651a8a1cd34d986006796f633
tree1cb7a41740bdda002c5dd42081d7bd89359fb7de
parentb33cdae70a1b1bf5190a5daeac05134b1091ad32
Possibly send a Ready.RW value to generators waiting on RW

In some generators, we might be interested in receiving both read-ready
and write-ready event at the same time.

Per previous commits, all wait*() functions support this.

This is covered by test_wait_ready(), which now maps Wait.RW to
Ready.RW.
psycopg/psycopg/waiting.py
tests/test_waiting.py