new

fun new(name: String? = null, func: ThreadFunc): Thread

This function creates a new thread. The new thread starts by invoking

Return

the new #GThread

Since

2.32

Parameters

name

an (optional) name for the new thread

func

a function to execute in the new thread