Skip to content

Commit e88f094

Browse files
authored
Update README.md
1 parent d4948a1 commit e88f094

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pool.TaskDone += (Pooler.Base p, Pooler.TaskDoneEventArgs e)) => {
7171
```
7272

7373
### 3. Use Pooler events
74-
`pool.TaskDone` event is triggered after each task has been executed (successfuly or with exception):
74+
- `pool.TaskDone` event is triggered after each task has been executed (successfuly or with exception):
7575
```cs
7676
pool.TaskDone += (Pooler.Base p, Pooler.TaskDoneEventArgs e)) => {
7777
Console.WriteLine("Single task has been executed.");
@@ -85,7 +85,7 @@ pool.TaskDone += (Pooler.Base p, Pooler.TaskDoneEventArgs e)) => {
8585
Console.WriteLine("Executed tasks count: " + e.ExecutedTasksCount);
8686
};
8787
```
88-
`pool.TaskException` event is triggered immediately when exception inside executing task is catched, before TaskDone event:
88+
- `pool.TaskException` event is triggered immediately when exception inside executing task is catched, before TaskDone event:
8989
```cs
9090
pool.TaskException += (Pooler.Base p, Pooler.ExceptionEventArgs e) => {
9191
Console.WriteLine("Catched exception during task execution.");
@@ -94,7 +94,7 @@ pool.TaskException += (Pooler.Base p, Pooler.ExceptionEventArgs e) => {
9494
Console.WriteLine(e.Exception.Message);
9595
};
9696
```
97-
`pool.AllDone` event is triggered after all tasks in pooler store has been executed:
97+
- `pool.AllDone` event is triggered after all tasks in pooler store has been executed:
9898
```cs
9999
pool.AllDone += (Pooler.Base p, Pooler.AllDoneEventArgs e) => {
100100
Console.WriteLine("All tasks has been executed.");
@@ -159,18 +159,18 @@ Pooler.Parallel pool;
159159
pool = Pooler.Parallel.CreateNew(10, 100);
160160
pool = new Pooler.Parallel(10, 100);
161161
```
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.
164164

165165
Create new repeater tasks instance by static factory or by new Pooler.Repeater to process manytimes only one specific call:
166166
```cs
167167
Pooler.Repeater pool;
168168
pool = Pooler.Repeater.CreateNew(10, 500, 100);
169169
pool = new Pooler.Repeater(10, 500, 100);
170170
```
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.
174174

175175
#### Repeater instance and single specific task setup:
176176
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

Comments
 (0)