Skip to content

Use function pointers instead of delegates to clear object pool in C#9. #305

Use function pointers instead of delegates to clear object pool in C#9.

Use function pointers instead of delegates to clear object pool in C#9. #305

GitHub Actions / dotnet-test-results-net6.0-Release-Pool_Enabled-userMode succeeded Sep 10, 2023 in 0s

dotnet-test-results-net6.0-Release-Pool_Enabled-userMode ✅

Tests passed successfully

✅ TestResults/dotnet-test-results-net6.0-Release-Pool_Enabled-userMode.trx

14889 tests were completed in 3212s with 14889 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
ProtoPromiseTests.APIs.AllTests 222✅ 23s
ProtoPromiseTests.APIs.APlus_2_1_PromiseStates+_2_1_1_WhenPendingAPromise 2✅ 191ms
ProtoPromiseTests.APIs.APlus_2_1_PromiseStates+_2_1_2_WhenFulfilledAPromise 3✅ 592ms
ProtoPromiseTests.APIs.APlus_2_1_PromiseStates+_2_1_3_WhenRejectedAPromise 4✅ 698ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod 4✅ 644ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+_2_2_3_IfOnRejectedIsAFunction 6✅ 635ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+_2_2_6_ThenMayBeCalledMultipleTimesOnTheSamePromise 4✅ 407ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+IfOnFulfilledIsAFunction_2_2_2 5✅ 605ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+ThenMustReturnAPromise_2_2_7 20✅ 2s
ProtoPromiseTests.APIs.APlus_2_3_ThePromiseResolutionProcedure 4✅ 844ms
ProtoPromiseTests.APIs.APlus_2_3_ThePromiseResolutionProcedure+_2_3_2_IfXIsAPromiseAdoptItsState 5✅ 872ms
ProtoPromiseTests.APIs.AsyncFunctionTests 46✅ 5s
ProtoPromiseTests.APIs.AsyncLazyTests 19✅ 2s
ProtoPromiseTests.APIs.AsyncLocalTests 4✅ 429ms
ProtoPromiseTests.APIs.AwaitTests 52✅ 6s
ProtoPromiseTests.APIs.CancelationTests+Registration 40✅ 8s
ProtoPromiseTests.APIs.CancelationTests+Source 36✅ 4s
ProtoPromiseTests.APIs.CancelationTests+Token 35✅ 4s
ProtoPromiseTests.APIs.CaptureTests 30✅ 3s
ProtoPromiseTests.APIs.ContinuewithTests 16✅ 2s
ProtoPromiseTests.APIs.FinallyTests 12✅ 1s
ProtoPromiseTests.APIs.FirstTests 250✅ 27s
ProtoPromiseTests.APIs.MergeTests 122✅ 13s
ProtoPromiseTests.APIs.MiscellaneousTests 119✅ 49s
ProtoPromiseTests.APIs.NewAndRunTests 608✅ 67s
ProtoPromiseTests.APIs.ParallelForTests 25✅ 3s
ProtoPromiseTests.APIs.ProgressTests 680✅ 74s
ProtoPromiseTests.APIs.PromiseCancelationTests 19✅ 2s
ProtoPromiseTests.APIs.PromiseCancelationTests+CancelationToken 28✅ 4s
ProtoPromiseTests.APIs.PromiseCancelationTests+CancelationToken+Reject 6✅ 672ms
ProtoPromiseTests.APIs.PromiseCancelationTests+CatchCancelationMayBeCalledMultipleTimesOnTheSamePromise 2✅ 224ms
ProtoPromiseTests.APIs.PromiseCancelationTests+IfOnCanceledIsAFunction 5✅ 546ms
ProtoPromiseTests.APIs.PromiseCancelationTests+ThePromiseResolutionProcedure 2✅ 222ms
ProtoPromiseTests.APIs.PromiseCancelationTests+ThePromiseResolutionProcedure+IfXIsAPromiseAdoptItsState 6✅ 674ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenCanceledAPromise 2✅ 220ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenFulfilledAPromise 2✅ 219ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenPendingAPromise 2✅ 219ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenRejectedAPromise 2✅ 218ms
ProtoPromiseTests.APIs.RaceTests 238✅ 27s
ProtoPromiseTests.APIs.SequenceTests 51✅ 6s
ProtoPromiseTests.APIs.Threading.AsyncAutoResetEventTests 18✅ 2s
ProtoPromiseTests.APIs.Threading.AsyncConditionVariableTests 21✅ 2s
ProtoPromiseTests.APIs.Threading.AsyncCountdownEventTests 20✅ 2s
ProtoPromiseTests.APIs.Threading.AsyncLockTests 17✅ 3s
ProtoPromiseTests.APIs.Threading.AsyncManualResetEventTests 19✅ 2s
ProtoPromiseTests.APIs.Threading.AsyncMonitorTests 38✅ 5s
ProtoPromiseTests.APIs.Threading.AsyncReaderWriterLockTests 186✅ 20s
ProtoPromiseTests.APIs.Threading.AsyncSemaphoreTests 21✅ 2s
ProtoPromiseTests.APIs.UncaughtRejectionTests 76✅ 9s
ProtoPromiseTests.APIs.WaitAsyncTests 8880✅ 1011s
ProtoPromiseTests.Concurrency.AllConcurrencyTests 160✅ 245s
ProtoPromiseTests.Concurrency.ApiWithCancelationTokenConcurrencyTests 108✅ 53s
ProtoPromiseTests.Concurrency.AsyncLazyConcurrencyTests 4✅ 938ms
ProtoPromiseTests.Concurrency.AwaitConcurrencyTests 86✅ 16s
ProtoPromiseTests.Concurrency.CancelationConcurrencyTests 43✅ 7s
ProtoPromiseTests.Concurrency.DeferredConcurrencyTests 60✅ 7s
ProtoPromiseTests.Concurrency.DeferredThreadTests 34✅ 4s
ProtoPromiseTests.Concurrency.FirstConcurrencyTests 160✅ 247s
ProtoPromiseTests.Concurrency.MergeConcurrencyTests 260✅ 219s
ProtoPromiseTests.Concurrency.PromiseConcurrencyTests 722✅ 243s
ProtoPromiseTests.Concurrency.PromiseNonPreservedConcurrencyTests 156✅ 22s
ProtoPromiseTests.Concurrency.RaceConcurrencyTests 160✅ 249s
ProtoPromiseTests.Concurrency.Threading.AsyncAutoResetEventConcurrencyTests 8✅ 4s
ProtoPromiseTests.Concurrency.Threading.AsyncCountdownEventConcurrencyTests 16✅ 7s
ProtoPromiseTests.Concurrency.Threading.AsyncLockConcurrencyTests 12✅ 128s
ProtoPromiseTests.Concurrency.Threading.AsyncManualResetEventConcurrencyTests 8✅ 3s
ProtoPromiseTests.Concurrency.Threading.AsyncReaderWriterLockConcurrencyTests 654✅ 268s
ProtoPromiseTests.Concurrency.Threading.AsyncSemaphoreConcurrencyTests 12✅ 59s
ProtoPromiseTests.Concurrency.WaitAsyncConcurrencyTests 192✅ 23s