Skip to content

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

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. #883

GitHub Actions / dotnet-test-results-net6.0-Debug_NoProgress-Pool_Disabled-devMode succeeded Sep 9, 2023 in 1s

dotnet-test-results-net6.0-Debug_NoProgress-Pool_Disabled-devMode ✅

Tests passed successfully

✅ TestResults/dotnet-test-results-net6.0-Debug_NoProgress-Pool_Disabled-devMode.trx

13064 tests were completed in 2368s with 13064 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
ProtoPromiseTests.APIs.AllTests 22✅ 2s
ProtoPromiseTests.APIs.APlus_2_1_PromiseStates+_2_1_1_WhenPendingAPromise 2✅ 153ms
ProtoPromiseTests.APIs.APlus_2_1_PromiseStates+_2_1_2_WhenFulfilledAPromise 3✅ 691ms
ProtoPromiseTests.APIs.APlus_2_1_PromiseStates+_2_1_3_WhenRejectedAPromise 4✅ 788ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod 4✅ 576ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+_2_2_1_BothOnResolveAndOnRejectedAreOptionalArgument 4✅ 396ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+_2_2_3_IfOnRejectedIsAFunction 6✅ 522ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+_2_2_6_ThenMayBeCalledMultipleTimesOnTheSamePromise 4✅ 294ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+IfOnFulfilledIsAFunction_2_2_2 5✅ 414ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+ThenMustReturnAPromise_2_2_7 20✅ 2s
ProtoPromiseTests.APIs.APlus_2_3_ThePromiseResolutionProcedure 14✅ 2s
ProtoPromiseTests.APIs.APlus_2_3_ThePromiseResolutionProcedure+_2_3_2_IfXIsAPromiseAdoptItsState 5✅ 663ms
ProtoPromiseTests.APIs.AsyncFunctionTests 32✅ 2s
ProtoPromiseTests.APIs.AsyncLazyTests 18✅ 1s
ProtoPromiseTests.APIs.AsyncLocalTests 4✅ 290ms
ProtoPromiseTests.APIs.AwaitTests 52✅ 4s
ProtoPromiseTests.APIs.CancelationTests+Registration 40✅ 8s
ProtoPromiseTests.APIs.CancelationTests+Source 36✅ 3s
ProtoPromiseTests.APIs.CancelationTests+Token 35✅ 3s
ProtoPromiseTests.APIs.CaptureTests 34✅ 3s
ProtoPromiseTests.APIs.ContinuewithTests 18✅ 2s
ProtoPromiseTests.APIs.FinallyTests 14✅ 1s
ProtoPromiseTests.APIs.FirstTests 50✅ 4s
ProtoPromiseTests.APIs.MergeTests 10✅ 816ms
ProtoPromiseTests.APIs.MiscellaneousTests 119✅ 47s
ProtoPromiseTests.APIs.NewAndRunTests 608✅ 48s
ProtoPromiseTests.APIs.ParallelForTests 26✅ 2s
ProtoPromiseTests.APIs.ProgressTests 24✅ 2s
ProtoPromiseTests.APIs.PromiseCancelationTests 21✅ 2s
ProtoPromiseTests.APIs.PromiseCancelationTests+CancelationToken 28✅ 2s
ProtoPromiseTests.APIs.PromiseCancelationTests+CancelationToken+Reject 6✅ 1s
ProtoPromiseTests.APIs.PromiseCancelationTests+CatchCancelationMayBeCalledMultipleTimesOnTheSamePromise 2✅ 158ms
ProtoPromiseTests.APIs.PromiseCancelationTests+IfOnCanceledIsAFunction 5✅ 403ms
ProtoPromiseTests.APIs.PromiseCancelationTests+ThePromiseResolutionProcedure 6✅ 542ms
ProtoPromiseTests.APIs.PromiseCancelationTests+ThePromiseResolutionProcedure+IfXIsAPromiseAdoptItsState 6✅ 482ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenCanceledAPromise 2✅ 160ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenFulfilledAPromise 2✅ 166ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenPendingAPromise 2✅ 169ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenRejectedAPromise 2✅ 163ms
ProtoPromiseTests.APIs.RaceTests 38✅ 3s
ProtoPromiseTests.APIs.SequenceTests 15✅ 1s
ProtoPromiseTests.APIs.Threading.AsyncAutoResetEventTests 18✅ 2s
ProtoPromiseTests.APIs.Threading.AsyncConditionVariableTests 22✅ 2s
ProtoPromiseTests.APIs.Threading.AsyncCountdownEventTests 20✅ 2s
ProtoPromiseTests.APIs.Threading.AsyncLockTests 17✅ 2s
ProtoPromiseTests.APIs.Threading.AsyncManualResetEventTests 19✅ 2s
ProtoPromiseTests.APIs.Threading.AsyncMonitorTests 39✅ 4s
ProtoPromiseTests.APIs.Threading.AsyncReaderWriterLockTests 186✅ 15s
ProtoPromiseTests.APIs.Threading.AsyncSemaphoreTests 21✅ 2s
ProtoPromiseTests.APIs.UncaughtRejectionTests 76✅ 11s
ProtoPromiseTests.APIs.WaitAsyncTests 8880✅ 774s
ProtoPromiseTests.Concurrency.AllConcurrencyTests 256✅ 45s
ProtoPromiseTests.Concurrency.ApiWithCancelationTokenConcurrencyTests 36✅ 59s
ProtoPromiseTests.Concurrency.AsyncLazyConcurrencyTests 3✅ 717ms
ProtoPromiseTests.Concurrency.AwaitConcurrencyTests 22✅ 2s
ProtoPromiseTests.Concurrency.CancelationConcurrencyTests 43✅ 6s
ProtoPromiseTests.Concurrency.DeferredConcurrencyTests 12✅ 1s
ProtoPromiseTests.Concurrency.DeferredThreadTests 10✅ 910ms
ProtoPromiseTests.Concurrency.FirstConcurrencyTests 256✅ 45s
ProtoPromiseTests.Concurrency.MergeConcurrencyTests 416✅ 649s
ProtoPromiseTests.Concurrency.PromiseConcurrencyTests 50✅ 14s
ProtoPromiseTests.Concurrency.PromiseNonPreservedConcurrencyTests 156✅ 20s
ProtoPromiseTests.Concurrency.RaceConcurrencyTests 256✅ 50s
ProtoPromiseTests.Concurrency.Threading.AsyncAutoResetEventConcurrencyTests 8✅ 4s
ProtoPromiseTests.Concurrency.Threading.AsyncCountdownEventConcurrencyTests 16✅ 8s
ProtoPromiseTests.Concurrency.Threading.AsyncLockConcurrencyTests 12✅ 129s
ProtoPromiseTests.Concurrency.Threading.AsyncManualResetEventConcurrencyTests 8✅ 3s
ProtoPromiseTests.Concurrency.Threading.AsyncReaderWriterLockConcurrencyTests 654✅ 276s
ProtoPromiseTests.Concurrency.Threading.AsyncSemaphoreConcurrencyTests 12✅ 60s
ProtoPromiseTests.Concurrency.WaitAsyncConcurrencyTests 192✅ 19s