Skip to content

Commit

Permalink
Merge pull request #242 from timcassell/rel_2_5_2
Browse files Browse the repository at this point in the history
v2.5.2
  • Loading branch information
timcassell authored Jun 5, 2023
2 parents 8387d04 + ab3a7ba commit a791930
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
15 changes: 15 additions & 0 deletions Package/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Change Log

## v 2.5.2 - June 4, 2023

Fixes:

- Fixed causality traces with `Promise.ParallelForEach` and `Promise.ParallelFor`.
- Fixed circular await detection with `Promise.ParallelForEach` and `Promise.ParallelFor`.
- Fixed `Promise.Canceled()` caused the parent promise to be mutated after it was repooled.

Optimizations:

- Reduced memory and cpu of `Promise.ParallelForEach` and `Promise.ParallelFor`.
- Reduced memory and cpu of `Promise.Run`.
- Reduced memory and cpu of `Promise.New`.
- Optimized internal context callbacks.

## v 2.5.1 - May 26, 2023

Fixes:
Expand Down
17 changes: 4 additions & 13 deletions Package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,11 @@ See the [C# Asynchronous Benchmarks Repo](https://github.com/timcassell/CSharpAs

## Latest Updates

## v 2.5.1 - May 26, 2023
## v 2.5.2 - June 4, 2023

- Included IL2CPP fixes in .Net Standard 2.1 nuget package.
- Fixed a race condition with linked `CancelationToken`s when object pooling is enabled.
- Fixed a race condition when `Deferred.ReportProgress` is called concurrently with `Deferred.Resolve/Reject/Cancel`.

## v 2.5.0 - May 15, 2023

- Added `AsyncLazy` type.
- Added more async synchronization primitives in the `Proto.Promises.Threading` namespace.
- Added APIs to wait for promise result without throwing.
- Added `SwitchToForegroundAwait`, `SwitchToBackgroundAwait`, and `SwitchToContextAwait` for more efficient context switch in `async` functions.
- Added common Unity awaits in `PromiseYielder`.
- Create custom `await` instructions in Unity by implementing `IAwaitInstruction` or `IAwaitWithProgressInstruction`.
- Fixed causality traces and circular await detection with `Promise.ParallelForEach` and `Promise.ParallelFor`.
- Fixed `Promise.Canceled()` caused the parent promise to be mutated after it was repooled.
- Reduced memory and cpu of `Promise.ParallelForEach`, `Promise.ParallelFor`, `Promise.Run`, and `Promise.New`.

See [ChangeLog](../Package/CHANGELOG.md) for the full changelog.

Expand Down
2 changes: 1 addition & 1 deletion Package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.timcassell.protopromise",
"version": "2.5.1",
"version": "2.5.2",
"displayName": "ProtoPromise",
"description": "Robust and efficient library for management of asynchronous operations.",
"changelogUrl": "https://github.com/timcassell/ProtoPromise/blob/master/Package/CHANGELOG.md",
Expand Down
2 changes: 1 addition & 1 deletion ProtoPromise/ProtoPromise.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFrameworks>net35;net40;net45;net47;netstandard2.0;netstandard2.1;netcoreapp2.1;net5.0;net6.0</TargetFrameworks>
<Configurations>Release;Debug;Release_NoProgress;Debug_NoProgress</Configurations>
<Version>2.5.1</Version>
<Version>2.5.2</Version>
<!--Set true to help debug internal promise code (allows the debugger to step into the code and includes internal stacktraces).-->
<DeveloperMode>false</DeveloperMode>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion ProtoPromiseUnityHelpers/ProtoPromiseUnityHelpers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!--We target .Net Framework 3.5 to support old Unity versions, and we also target .Net Standard 2.1 to support new Unity versions, even after it drops old Framework support.-->
<TargetFrameworks>net35;netstandard2.1</TargetFrameworks>
<Configurations>Release;Debug;</Configurations>
<Version>2.5.1</Version>
<Version>2.5.2</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit a791930

Please sign in to comment.