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