ThreadGroup.create

Thread create(void function() fn)

Creates and starts a new Thread object that executes fn and adds it to the list of tracked threads.

Parameters

fnThe thread function.

Returns

A reference to the newly created thread.
Thread create(void delegate() dg)

Creates and starts a new Thread object that executes dg and adds it to the list of tracked threads.

Parameters

dgThe thread function.

Returns

A reference to the newly created thread.