You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Console.WriteLine("All tasks has been executed.");
@@ -159,18 +159,18 @@ Pooler.Parallel pool;
159
159
pool=Pooler.Parallel.CreateNew(10, 100);
160
160
pool=newPooler.Parallel(10, 100);
161
161
```
162
-
First (optional) param is max. threads in background to executing all tasks. 10 by default.
163
-
Second (optional) param is pause miliseconds to slow down CPU load or other resources by `pool.Pause();` calls inside your tasks, 0 by default.
162
+
-First (optional) param is max. threads in background to executing all tasks. 10 by default.
163
+
-Second (optional) param is pause miliseconds to slow down CPU load or other resources by `pool.Pause();` calls inside your tasks, 0 by default.
164
164
165
165
Create new repeater tasks instance by static factory or by new Pooler.Repeater to process manytimes only one specific call:
166
166
```cs
167
167
Pooler.Repeaterpool;
168
168
pool=Pooler.Repeater.CreateNew(10, 500, 100);
169
169
pool=newPooler.Repeater(10, 500, 100);
170
170
```
171
-
First (optional) param is max. threads in background to executing one specific task. 10 by default.
172
-
Second (optional) param is how many times will be specific task executed. Null means infinite, then you need to use pool.StopProcessing(); somewhere in the future manualy.
173
-
Third (optional) param is pause miliseconds to slow down CPU load or other resources by `pool.Pause();` calls inside your task, 0 by default.
171
+
-First (optional) param is max. threads in background to executing one specific task. 10 by default.
172
+
-Second (optional) param is how many times will be specific task executed. Null means infinite, then you need to use pool.StopProcessing(); somewhere in the future manualy.
173
+
-Third (optional) param is pause miliseconds to slow down CPU load or other resources by `pool.Pause();` calls inside your task, 0 by default.
174
174
175
175
#### Repeater instance and single specific task setup:
176
176
To add only one specific task into Repeater threads pool to execute this single task manytimes in limited background threads count, use:
0 commit comments