File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
tests/FSharp.Compiler.Service.Tests Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -486,6 +486,7 @@ module Async2 =
486486 try
487487 BindContext.started.Value <- true
488488 CheckAndThrowToken.Value <- ct
489+
489490 if immediate then
490491 code.StartImmediate ct |> _. Task
491492 else
@@ -494,15 +495,15 @@ module Async2 =
494495 CheckAndThrowToken.Value <- oldCt
495496 BindContext.started.Value <- oldStarted
496497
497- let run ct ( code : Async2 < 't >) = start ct code |> _. GetAwaiter() .GetResult()
498+ let run ct ( code : Async2 < 't >) =
499+ start ct code |> _. GetAwaiter() .GetResult()
498500
499501 let runWithoutCancellation code = run CancellationToken.None code
500502
501503 //let queueTask ct code =
502504 // Task.Run<'t>(fun () -> start ct code)
503505
504- let startAsTaskWithoutCancellation code =
505- start CancellationToken.None code
506+ let startAsTaskWithoutCancellation code = start CancellationToken.None code
506507
507508 let toAsync ( code : Async2 < 't >) =
508509 async {
Original file line number Diff line number Diff line change @@ -12532,12 +12532,11 @@ Internal.Utilities.Library.Async2Implementation: Internal.Utilities.Library.Asyn
1253212532Internal.Utilities.Library.Async2Module: Internal.Utilities.Library.Async2`1[System.Threading.CancellationToken] CancellationToken
1253312533Internal.Utilities.Library.Async2Module: Internal.Utilities.Library.Async2`1[System.Threading.CancellationToken] get_CancellationToken()
1253412534Internal.Utilities.Library.Async2Module: Internal.Utilities.Library.Async2`1[t] fromValue[t](t)
12535- Internal.Utilities.Library.Async2Module: Internal.Utilities.Library.IAsync2Invocation`1[a] start[a](System.Threading.CancellationToken, Internal.Utilities.Library.Async2`1[a])
1253612535Internal.Utilities.Library.Async2Module: Microsoft.FSharp.Control.FSharpAsync`1[t] toAsync[t](Internal.Utilities.Library.Async2`1[t])
1253712536Internal.Utilities.Library.Async2Module: System.Threading.AsyncLocal`1[System.Threading.CancellationToken] CheckAndThrowToken
1253812537Internal.Utilities.Library.Async2Module: System.Threading.AsyncLocal`1[System.Threading.CancellationToken] get_CheckAndThrowToken()
1253912538Internal.Utilities.Library.Async2Module: System.Threading.Tasks.Task`1[a] startAsTaskWithoutCancellation[a](Internal.Utilities.Library.Async2`1[a])
12540- Internal.Utilities.Library.Async2Module: System.Threading.Tasks.Task`1[t] queueTask [t](System.Threading.CancellationToken, Internal.Utilities.Library.Async2`1[t])
12539+ Internal.Utilities.Library.Async2Module: System.Threading.Tasks.Task`1[t] start [t](System.Threading.CancellationToken, Internal.Utilities.Library.Async2`1[t])
1254112540Internal.Utilities.Library.Async2Module: a runWithoutCancellation[a](Internal.Utilities.Library.Async2`1[a])
1254212541Internal.Utilities.Library.Async2Module: t run[t](System.Threading.CancellationToken, Internal.Utilities.Library.Async2`1[t])
1254312542Internal.Utilities.Library.Async2`1[t]: Internal.Utilities.Library.IAsync2Invocation`1[t] StartImmediate(System.Threading.CancellationToken)
You can’t perform that action at this time.
0 commit comments