mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-25 07:06:20 -10:00
In the previous commit, we only polled the user-provided CancellationToken prior to waiting on the synchronization primitive, but the sync primitive wait was only cancelable by shutting down the stream. This commit updates that logic to support also canceling the asynchronous wait via the user-provided CancellationToken. Commit migrated from https://github.com/dotnet/corefx/commit/80d2b157525211b655c3f81dde0ace6be9617720