We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da009fb commit 6b96083Copy full SHA for 6b96083
src/Compiler/Driver/CompilerImports.fs
@@ -1586,8 +1586,10 @@ and [<Sealed>] TcImports
1586
1587
#if !NO_TYPEPROVIDERS
1588
member private tcImports.AttachDisposeTypeProviderAction action =
1589
- CheckDisposed()
1590
- disposeTypeProviderActions.Add action
+ tciLock.AcquireLock(fun tcitok ->
+ CheckDisposed()
1591
+ RequireTcImportsLock(tcitok, disposeTypeProviderActions)
1592
+ disposeTypeProviderActions.Add action)
1593
#endif
1594
1595
// Note: the returned binary reader is associated with the tcImports, i.e. when the tcImports are closed
0 commit comments