Gio.UnixConnection.prototype.receive_credentials_async

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

Asynchronously receive credentials.

For more details, see Gio.UnixConnection.prototype.receive_credentials which is the synchronous version of this call.

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

Since 2.32

cancellable

optional Gio.Cancellable object, null to ignore.

callback

a Gio.AsyncReadyCallback to call when the request is satisfied