class PG::Connection

def setnonblocking(enabled)

Returns +nil+.

processed the query and returned the results.
that function doesn't return until the server has
Note: This function does not affect #exec, because
writing.
will return an error if the socket is not ready for
In the nonblocking state, calls to #send_query
but will not wait for the query results.
will block until the message is sent to the server,
In the blocking state, calls to #send_query
Sets the nonblocking status of the connection.

conn.setnonblocking(Boolean) -> nil
call-seq:
def setnonblocking(enabled)
	singleton_class.async_send_api = !enabled
	self.flush_data = !enabled
	sync_setnonblocking(true)
end