Skip to content

Commit 6f0fa7c

Browse files
committed
temp bsl
1 parent c325c57 commit 6f0fa7c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Compiler/Utilities/Async2.fs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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 {

tests/FSharp.Compiler.Service.Tests/FSharp.Compiler.Service.SurfaceArea.netstandard20.bsl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12532,12 +12532,11 @@ Internal.Utilities.Library.Async2Implementation: Internal.Utilities.Library.Asyn
1253212532
Internal.Utilities.Library.Async2Module: Internal.Utilities.Library.Async2`1[System.Threading.CancellationToken] CancellationToken
1253312533
Internal.Utilities.Library.Async2Module: Internal.Utilities.Library.Async2`1[System.Threading.CancellationToken] get_CancellationToken()
1253412534
Internal.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])
1253612535
Internal.Utilities.Library.Async2Module: Microsoft.FSharp.Control.FSharpAsync`1[t] toAsync[t](Internal.Utilities.Library.Async2`1[t])
1253712536
Internal.Utilities.Library.Async2Module: System.Threading.AsyncLocal`1[System.Threading.CancellationToken] CheckAndThrowToken
1253812537
Internal.Utilities.Library.Async2Module: System.Threading.AsyncLocal`1[System.Threading.CancellationToken] get_CheckAndThrowToken()
1253912538
Internal.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])
1254112540
Internal.Utilities.Library.Async2Module: a runWithoutCancellation[a](Internal.Utilities.Library.Async2`1[a])
1254212541
Internal.Utilities.Library.Async2Module: t run[t](System.Threading.CancellationToken, Internal.Utilities.Library.Async2`1[t])
1254312542
Internal.Utilities.Library.Async2`1[t]: Internal.Utilities.Library.IAsync2Invocation`1[t] StartImmediate(System.Threading.CancellationToken)

0 commit comments

Comments
 (0)