Josupeit.Practices.Jobs.TaskPool
1.0.7
Prefix Reserved
dotnet add package Josupeit.Practices.Jobs.TaskPool --version 1.0.7
NuGet\Install-Package Josupeit.Practices.Jobs.TaskPool -Version 1.0.7
<PackageReference Include="Josupeit.Practices.Jobs.TaskPool" Version="1.0.7" />
<PackageVersion Include="Josupeit.Practices.Jobs.TaskPool" Version="1.0.7" />
<PackageReference Include="Josupeit.Practices.Jobs.TaskPool" />
paket add Josupeit.Practices.Jobs.TaskPool --version 1.0.7
#r "nuget: Josupeit.Practices.Jobs.TaskPool, 1.0.7"
#:package Josupeit.Practices.Jobs.TaskPool@1.0.7
#addin nuget:?package=Josupeit.Practices.Jobs.TaskPool&version=1.0.7
#tool nuget:?package=Josupeit.Practices.Jobs.TaskPool&version=1.0.7
Josupeit.Practices.Jobs.TaskPool
The simplest way to turn an async delegate into a trackable, observable job. TaskPoolJobFactory creates jobs that start executing on the thread pool the moment Start() is called. There is no queue, no ordering guarantee, and no scheduler lifecycle to manage. It is the right default when all you need is the ability to track whether a background operation is still running, what it returned, or whether it failed.
dotnet add package Josupeit.Practices.Jobs.TaskPool
How to use
Simple job
IJobFactory factory = new TaskPoolJobFactory();
IJob job = factory.Create(async ct => await DoWorkAsync(ct));
job.Start();
// Await completion. Does not throw — check IsFaulted / IsCanceled afterward if needed.
await job;
Job with a result
IJobWithResult<int> job = factory.Create(async ct =>
{
await Task.Delay(100, ct);
return 42;
});
job.Start();
await job;
if (job.IsCompletedSuccessfully)
Console.WriteLine(job.Result); // 42
Job with progress reporting
Progress is delivered to the Progress property and the Changed event is raised on every update, making it easy to drive a progress bar or status label.
IJobWithProgress<int> job = factory.Create<int>(async (progress, ct) =>
{
for (int i = 0; i <= 100; i++)
{
await Task.Delay(10, ct);
progress.Report(i);
}
});
job.Changed += (_, _) => Console.WriteLine($"{job.Progress}%");
job.Start();
await job;
Job with both progress and a result
IJobWithProgressAndResult<int, string> job = factory.Create<int, string>(async (progress, ct) =>
{
progress.Report(50);
await Task.Delay(50, ct);
progress.Report(100);
return "done";
});
job.Start();
await job;
When you need jobs to run in a specific order or with bounded concurrency, use Josupeit.Practices.Jobs.Scheduler together with a ChannelScheduler instead.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Josupeit.Practices.Jobs.Core (>= 1.0.0 && < 2.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.7 | 117 | 3/10/2026 |