ThreadGroup.create

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

  1. Thread create(void function() fn)
  2. Thread create(void delegate() dg)
    class ThreadGroup
    final
    create
    (
    void delegate(
    )
    dg
    )

Parameters

dg
Type: void delegate(
)

The thread function.

Return Value

Type: Thread

A reference to the newly created thread.

Suggestion Box / Bug Report