The constructor function creates a Threads
object.
var threads1 = new Threads();
var threads2 = new Threads(4);
Calling | Returning |
---|---|
new Threads ( ) |
Threads |
new Threads ( count ) |
Threads |
Parameter | Type | Description |
---|---|---|
count |
Number |
The number of threads. The default is 4. |