Skip to content

Commit afbe8e0

Browse files
authored
Update CompilerImports.fs
1 parent 91af6e8 commit afbe8e0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/fsharp/CompilerImports.fs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -707,11 +707,9 @@ type TcImportsSafeDisposal
707707
if verbose then
708708
dprintf "disposing of TcImports, %d binaries\n" disposeActions.Count
709709
#if !NO_EXTENSIONTYPING
710-
async {
711-
let actions = disposeTypeProviderActions
712-
if actions.Count > 0 then
713-
TypeProviderLock.Singleton.AcquireLock(fun _ -> for action in actions do action())
714-
} |> Async.Start // Make this async so we do not block dispose
710+
let actions = disposeTypeProviderActions
711+
if actions.Count > 0 then
712+
TypeProviderLock.Singleton.AcquireLock(fun _ -> for action in actions do action())
715713
#endif
716714
for action in disposeActions do action()
717715

0 commit comments

Comments
 (0)