Back to top

    ReQL command: close

    Command syntax

    conn.close(noreply_wait=True)

    Description

    Close an open connection.

    Closing a connection normally waits until all outstanding requests have finished and then frees any open resources associated with the connection. By passing False to the noreply_wait optional argument, the connection will be closed immediately, possibly aborting any outstanding noreply writes.

    A noreply query is executed by passing the noreply option to the run command, indicating that run() should not wait for the query to complete before returning. You may also explicitly wait for a noreply query to complete by using the noreply_wait command.

    Example: Close an open connection, waiting for noreply writes to finish.

    conn.close()
    

    Example: Close an open connection immediately.

    conn.close(noreply_wait=False)
    

    Get more help

    Couldn't find what you were looking for?