Skip to main content
Module

x/mysql2/deps.ts>Socket#unref

MySQL client for Deno with focus on performance. Supports prepared statements, non-utf8 encodings, binary log protocol, compression much more
Latest
method Socket.prototype.unref
import { Socket } from "https://deno.land/x/mysql2@v1.0.6/deps.ts";

Calling unref() on a socket will allow the program to exit if this is the only active socket in the event system. If the socket is already unrefed callingunref() again will have no effect.

Returns

this

The socket itself.