Method: Mysql2::Client#close
- Defined in:
- ext/mysql2/client.c
#close ⇒ Object
Immediately disconnect from the server, normally the garbage collector will disconnect automatically when a connection is no longer needed. Explicitly closing this will free up server resources sooner than waiting for the garbage collector.
180 181 182 183 184 185 186 |
# File 'ext/mysql2/client.c', line 180 static VALUE rb_mysql_client_close(VALUE self) { GET_CLIENT(self) rb_thread_blocking_region(nogvl_close, client, RUBY_UBF_IO, 0); return Qnil; } |