[ CCode ( cname = "g_thread_try_new" ) ]
public Thread.try (string? name, owned ThreadFunc<T> func) throws Error
This function is the same as Thread except that it allows for the possibility of failure.
If a thread can not be created (due to resource limits), throws is set and null is returned.
an (optional) name for the new thread
a function to execute in the new thread
an argument to supply to the new thread
the new Thread, or null if an error occurred