Gio.Task.prototype.set_source_tag
function set_source_tag(source_tag: void): void { // Gjs wrapper for g_task_set_source_tag() }
Sets task's source tag. You can use this to tag a task return value with a particular pointer (usually a pointer to the function doing the tagging) and then later check it using Gio.Task.prototype.get_source_tag (or Gio.AsyncResult.prototype.is_tagged) in the task's "finish" function, to figure out if the response came from a particular place.
Since 2.36
- source_tag
an opaque pointer indicating the source of this task