Use ExecutionContext.Restore rather than EC.Run callback (#37942)
authorBen Adams <thundercat@illyriad.co.uk>
Mon, 6 Jul 2020 22:50:47 +0000 (23:50 +0100)
committerGitHub <noreply@github.com>
Mon, 6 Jul 2020 22:50:47 +0000 (15:50 -0700)
commit682141eca64f82207bee39e7edf218a0e14daeeb
treee0711a23e31a780f789a64fe328ec7ac78534af5
parentdcef69f9a1c2b521edbe6a7415eb65df2337478e
Use ExecutionContext.Restore rather than EC.Run callback (#37942)

Use ExecutionContext.Restore rather than EC.Run callback

Only running inline needs to do extra work and error handling for post run restore
src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs
src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Sources/ManualResetValueTaskSourceCore.cs