File.newTmpDirAsync

void newTmpDirAsync(string tmpl, int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Asynchronously creates a directory in the preferred directory for temporary files (as returned by [glib.global.getTmpDir]) as [glib.dir.Dir.makeTmp].

tmpl should be a string in the GLib file name encoding containing a sequence of six 'X' characters, and containing no directory components. If it is null, a default template is used.

Parameters

tmplTemplate for the file name, as in [glib.dir.Dir.makeTmp], or null for a default template
ioPrioritythe [I/O priority][io-priority] of the request
cancellableoptional #GCancellable object, null to ignore
callbacka #GAsyncReadyCallback to call when the request is done