Task.setSourceTag

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 Task.getSourceTag (or g_async_result_is_tagged()) in the task's "finish" function, to figure out if the response came from a particular place.

class Task
void
setSourceTag
(
void* sourceTag
)

Parameters

sourceTag void*

an opaque pointer indicating the source of this task

Meta

Since

2.36