Gio.SocketListener.prototype.accept_socket_async
function accept_socket_async(cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for g_socket_listener_accept_socket_async() }
This is the asynchronous version of Gio.SocketListener.prototype.accept_socket.
When the operation is finished callback will be called. You can then call Gio.SocketListener.prototype.accept_socket_finish to get the result of the operation.
Since 2.22
- cancellable
a Gio.Cancellable, or null
- callback