Gio.ThreadedSocketService.new

function new(max_threads: Number(gint)): Gio.SocketService {
    // Gjs wrapper for g_threaded_socket_service_new()
}
  

Creates a new Gio.ThreadedSocketService with no listeners. Listeners must be added with one of the Gio.SocketListener "add" methods.

Since 2.22

max_threads

the maximal number of threads to execute concurrently handling incoming clients, -1 means no limit

Returns

a new Gio.SocketService.