Gio.SocketListener.prototype.accept_async

function accept_async(cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for g_socket_listener_accept_async()
}
  

This is the asynchronous version of Gio.SocketListener.prototype.accept.

When the operation is finished callback will be called. You can then call Gio.SocketListener.prototype.accept_socket to get the result of the operation.

Since 2.22

cancellable

a Gio.Cancellable, or null

callback

a Gio.AsyncReadyCallback