Skip to content

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

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

GitHub Actions / dotnet-test-results-net472-Release-Pool_Enabled succeeded Sep 9, 2023 in 0s

dotnet-test-results-net472-Release-Pool_Enabled ✅

Tests passed successfully

✅ TestResults/dotnet-test-results-net472-Release-Pool_Enabled.trx

13951 tests were completed in 2293s with 13951 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
ProtoPromiseTests.APIs.AllTests 222✅ 22s
ProtoPromiseTests.APIs.APlus_2_1_PromiseStates+_2_1_1_WhenPendingAPromise 2✅ 185ms
ProtoPromiseTests.APIs.APlus_2_1_PromiseStates+_2_1_2_WhenFulfilledAPromise 3✅ 851ms
ProtoPromiseTests.APIs.APlus_2_1_PromiseStates+_2_1_3_WhenRejectedAPromise 4✅ 985ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod 4✅ 928ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+_2_2_3_IfOnRejectedIsAFunction 6✅ 707ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+_2_2_6_ThenMayBeCalledMultipleTimesOnTheSamePromise 4✅ 384ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+IfOnFulfilledIsAFunction_2_2_2 5✅ 469ms
ProtoPromiseTests.APIs.APlus_2_2_TheThenMethod+ThenMustReturnAPromise_2_2_7 20✅ 3s
ProtoPromiseTests.APIs.APlus_2_3_ThePromiseResolutionProcedure 4✅ 1s
ProtoPromiseTests.APIs.APlus_2_3_ThePromiseResolutionProcedure+_2_3_2_IfXIsAPromiseAdoptItsState 5✅ 1s
ProtoPromiseTests.APIs.AsyncFunctionTests 46✅ 6s
ProtoPromiseTests.APIs.AsyncLazyTests 19✅ 2s
ProtoPromiseTests.APIs.AsyncLocalTests 4✅ 428ms
ProtoPromiseTests.APIs.AwaitTests 52✅ 5s
ProtoPromiseTests.APIs.CancelationTests+Registration 34✅ 6s
ProtoPromiseTests.APIs.CancelationTests+Source 36✅ 4s
ProtoPromiseTests.APIs.CancelationTests+Token 33✅ 4s
ProtoPromiseTests.APIs.CaptureTests 30✅ 4s
ProtoPromiseTests.APIs.ContinuewithTests 16✅ 2s
ProtoPromiseTests.APIs.FinallyTests 12✅ 2s
ProtoPromiseTests.APIs.FirstTests 250✅ 27s
ProtoPromiseTests.APIs.MergeTests 122✅ 13s
ProtoPromiseTests.APIs.MiscellaneousTests 119✅ 51s
ProtoPromiseTests.APIs.NewAndRunTests 608✅ 58s
ProtoPromiseTests.APIs.ParallelForTests 25✅ 3s
ProtoPromiseTests.APIs.ProgressTests 680✅ 69s
ProtoPromiseTests.APIs.PromiseCancelationTests 19✅ 3s
ProtoPromiseTests.APIs.PromiseCancelationTests+CancelationToken 28✅ 4s
ProtoPromiseTests.APIs.PromiseCancelationTests+CancelationToken+Reject 6✅ 675ms
ProtoPromiseTests.APIs.PromiseCancelationTests+CatchCancelationMayBeCalledMultipleTimesOnTheSamePromise 2✅ 186ms
ProtoPromiseTests.APIs.PromiseCancelationTests+IfOnCanceledIsAFunction 5✅ 513ms
ProtoPromiseTests.APIs.PromiseCancelationTests+ThePromiseResolutionProcedure 2✅ 271ms
ProtoPromiseTests.APIs.PromiseCancelationTests+ThePromiseResolutionProcedure+IfXIsAPromiseAdoptItsState 6✅ 794ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenCanceledAPromise 2✅ 193ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenFulfilledAPromise 2✅ 190ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenPendingAPromise 2✅ 277ms
ProtoPromiseTests.APIs.PromiseCancelationTests+WhenRejectedAPromise 2✅ 197ms
ProtoPromiseTests.APIs.RaceTests 238✅ 26s
ProtoPromiseTests.APIs.SequenceTests 51✅ 6s
ProtoPromiseTests.APIs.Threading.AsyncAutoResetEventTests 18✅ 3s
ProtoPromiseTests.APIs.Threading.AsyncCountdownEventTests 20✅ 3s
ProtoPromiseTests.APIs.Threading.AsyncManualResetEventTests 19✅ 3s
ProtoPromiseTests.APIs.Threading.AsyncSemaphoreTests 21✅ 3s
ProtoPromiseTests.APIs.UncaughtRejectionTests 76✅ 12s
ProtoPromiseTests.APIs.WaitAsyncTests 8880✅ 1128s
ProtoPromiseTests.Concurrency.AllConcurrencyTests 160✅ 72s
ProtoPromiseTests.Concurrency.ApiWithCancelationTokenConcurrencyTests 108✅ 21s
ProtoPromiseTests.Concurrency.AsyncLazyConcurrencyTests 4✅ 785ms
ProtoPromiseTests.Concurrency.AwaitConcurrencyTests 86✅ 13s
ProtoPromiseTests.Concurrency.CancelationConcurrencyTests 41✅ 6s
ProtoPromiseTests.Concurrency.DeferredConcurrencyTests 60✅ 8s
ProtoPromiseTests.Concurrency.DeferredThreadTests 34✅ 4s
ProtoPromiseTests.Concurrency.FirstConcurrencyTests 160✅ 61s
ProtoPromiseTests.Concurrency.MergeConcurrencyTests 260✅ 73s
ProtoPromiseTests.Concurrency.PromiseConcurrencyTests 722✅ 319s
ProtoPromiseTests.Concurrency.PromiseNonPreservedConcurrencyTests 156✅ 22s
ProtoPromiseTests.Concurrency.RaceConcurrencyTests 160✅ 61s
ProtoPromiseTests.Concurrency.Threading.AsyncAutoResetEventConcurrencyTests 8✅ 3s
ProtoPromiseTests.Concurrency.Threading.AsyncCountdownEventConcurrencyTests 16✅ 8s
ProtoPromiseTests.Concurrency.Threading.AsyncManualResetEventConcurrencyTests 8✅ 4s
ProtoPromiseTests.Concurrency.Threading.AsyncSemaphoreConcurrencyTests 12✅ 94s
ProtoPromiseTests.Concurrency.WaitAsyncConcurrencyTests 192✅ 24s