create

fun create(func: ThreadFunc, joinable: Boolean): <Error class: unknown class><Thread>

This function creates a new thread.

The new thread executes the function @func with the argument @data. If the thread was created successfully, it is returned.

Return

the new #GThread on success

Parameters

func

a function to execute in the new thread

joinable

should this thread be joinable?