set_name


Description:

[ Version ( since = "2.60" ) ]
public void set_name (string? name)

Sets this’s name, used in debugging and profiling.

The name defaults to null.

The task name should describe in a human readable way what the task does. For example, ‘Open file’ or ‘Connect to network host’. It is used to set the name of the SocketSource used for idle completion of the task.

This function may only be called before the this is first used in a thread other than the one it was constructed in. It is called automatically by set_source_tag if not called already.

Parameters:

this

a Task

name

a human readable name for the task, or null to unset it