Skip to content

Commit bf44cc0

Browse files
committed
Updated readme.
1 parent 8a60eee commit bf44cc0

1 file changed

Lines changed: 4 additions & 18 deletions

File tree

README.md

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
TaskExecutor is a .NET 8.0 library that provides a concurrency-controlled task execution framework. It allows you to enqueue tasks and execute them with a specified level of concurrency.
77

8+
**This library implements the [Active Object](https://en.wikipedia.org/wiki/Active_object) design pattern**, which decouples method execution from method invocation to enhance concurrency and simplify synchronized access to shared resources.
9+
810
## Features
911

1012
- **Limited Concurrent Tasks**: Restrict the number of tasks running simultaneously.
@@ -23,17 +25,9 @@ TaskExecutor is a .NET 8.0 library that provides a concurrency-controlled task e
2325
### Installation via NuGet
2426

2527
You can install the `TaskExecutor` library via NuGet Package Manager:
26-
27-
```bash
2828
dotnet add package task-executor
29-
```
30-
3129
Or add the following to your `.csproj` file:
32-
33-
```xml
3430
<PackageReference Include="task-executor" Version="*" />
35-
```
36-
3731
Replace `*` with the desired version.
3832

3933
### Using the Library
@@ -50,19 +44,11 @@ A test application is included in the repository to demonstrate how to use the `
5044
#### Running the Test Application
5145

5246
1. Open a terminal in the project directory.
53-
2. Build the solution:
54-
```bash
55-
dotnet build
56-
```
57-
3. Run the test application:
58-
```bash
59-
dotnet run --project TaskExecutorApp
60-
```
61-
47+
2. Build the solution: ```dotnet build```
48+
3. Run the test application: ```dotnet run --project TaskExecutorApp```
6249
#### Example Code
6350

6451
The `Program.cs` file in the `TaskExecutorApp` project demonstrates how to use the `TaskExecutor` library:
65-
6652
```csharp
6753
var cts = new CancellationTokenSource();
6854
using var executor = new TaskExecutor.TaskExecutor(3, cts.Token);

0 commit comments

Comments
 (0)