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