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 void function
()

The thread function.

Return Value

Type: Thread

A reference to the newly created thread.

Meta