mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-23 03:39:35 -10:00
Makes sure _cancelEvent is set before _completeEvent in TestAsyncOperation.OnOperationCompleted() so that threads waiting on _completeEvent don't risk reading Cancelled before it is set. Fixes dotnet/corefx#666 Commit migrated from https://github.com/dotnet/corefx/commit/f9b654a60ea05bc392182d20807698c4791cdb74