mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-03-03 23:55:46 +03:00
Improve doc for extras.wait_select
This commit is contained in:
parent
03fc3f9a2a
commit
6af55ee51c
|
@ -759,8 +759,8 @@ def wait_select(conn):
|
||||||
|
|
||||||
The function is an example of a wait callback to be registered with
|
The function is an example of a wait callback to be registered with
|
||||||
`~psycopg2.extensions.set_wait_callback()`. This function uses
|
`~psycopg2.extensions.set_wait_callback()`. This function uses
|
||||||
:py:func:`~select.select()` to wait for data available.
|
:py:func:`~select.select()` to wait for data to become available, and
|
||||||
|
therefore is able to handle/receive SIGINT/KeyboardInterrupt.
|
||||||
"""
|
"""
|
||||||
import select
|
import select
|
||||||
from psycopg2.extensions import POLL_OK, POLL_READ, POLL_WRITE
|
from psycopg2.extensions import POLL_OK, POLL_READ, POLL_WRITE
|
||||||
|
|
Loading…
Reference in New Issue
Block a user