ProtoPromise 2.7.0

Requires NuGet 2.5 or higher.

dotnet add package ProtoPromise --version 2.7.0
NuGet\Install-Package ProtoPromise -Version 2.7.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ProtoPromise" Version="2.7.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ProtoPromise --version 2.7.0
#r "nuget: ProtoPromise, 2.7.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ProtoPromise as a Cake Addin
#addin nuget:?package=ProtoPromise&version=2.7.0

// Install ProtoPromise as a Cake Tool
#tool nuget:?package=ProtoPromise&version=2.7.0

Robust and efficient library for management of asynchronous operations.

  • Allocation-free async operations
  • Cancelable operations with custom allocation-free CancelationToken/Source
  • Allocation-free async iterators with async Linq
  • Progress with enforced normalization
  • async/await support and .Then API
  • Thread safe
  • Full causality traces
  • Easily switch to foreground or background context
  • Combine async operations
  • Circular await detection
  • Interoperable with Tasks
  • CLS compliant

This library was built to work in all C#/.Net ecosystems, including Unity, Mono, .Net Framework, .Net Core, UI frameworks, and AOT compilation. It is CLS compliant, so it is not restricted to only C#, and will work with any .Net language.

ProtoPromise conforms to the Promises/A+ Spec as far as is possible with C# (using static typing instead of dynamic), and further extends it to support Cancelations and Progress.

This library took inspiration from ES6 Promises (javascript), RSG Promises (C#), uPromise (C#/Unity), TPL, and UniTask (C#/Unity).

See full README on GitHub.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net35 is compatible.  net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ProtoPromise:

Package Downloads

ProtoPromise helpers for UnityEngine.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.7.0 161 2/11/2024
2.6.1 932 10/22/2023
2.6.0 264 10/2/2023
2.5.4 493 6/17/2023
2.5.3 483 6/9/2023
2.5.2 456 6/5/2023
2.5.1 422 5/27/2023
2.5.0 469 5/15/2023
2.4.1 669 2/6/2023
2.4.0 747 12/23/2022
2.3.0 872 9/25/2022
2.2.0 661 8/6/2022
2.1.0 634 6/20/2022
2.0.2 660 4/25/2022
2.0.1 670 4/7/2022
2.0.0 663 3/7/2022


- Added `AsyncEnumerable<T>` allocation-free async iterators (requires C# 7.3 or newer).
- Added allocation-free async Linq extensions for `AsyncEnumerable<T>`.
- Added optional `ContentionStrategy` to `AsyncReaderWriterLock`.
- Added `Promise.ParallelForEachAsync` APIs to consume `AsyncEnumerable<T>` and `IAsyncEnumerable<T>` in parallel.
- Added new `Progress` APIs.
- Added `Promise.Finally` overloads accepting `Func<Promise>` delegates to support `DisposeAsync`.
- Added `PromiseYielder.{WaitForUpdate, WaitForLateUpdate}` APIs.


- Fixed an exception in Unity after exiting playmode with reload domain disabled.
- Fixed `AsyncLocal<T>` in `Promise.Parallel*` body.
- Fixed an error log when clearing the object pool in a rare case.


- Improved performance of `async Promise` functions in netstandard2.1 and Unity 2021.2 or newer.


- Deprecated old progress APIs (`Deferred.ReportProgress`, `Promise.Progress`, `Promise.AwaitWithProgress`). Replaced with new `Progress` APIs.