ThreadGroup.create

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

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

Parameters

fn
Type: void function(
)

The thread function.

Return Value

Type: Thread

A reference to the newly created thread.

Suggestion Box / Bug Report