Skip to content

Commit 1e0859b

Browse files
committed
Merge pull request #92 from rneatherway/set-min-threads
Set minimum threads to 8 for Mono 4.2.1
2 parents 0da2964 + 2ab56a4 commit 1e0859b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

FsAutoComplete.Suave/FsAutoComplete.Suave.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ module internal Utils =
3737

3838
[<EntryPoint>]
3939
let main argv =
40+
System.Threading.ThreadPool.SetMinThreads(8, 8) |> ignore
4041
let state = ref FsAutoComplete.State.Initial
4142
let checker = new FSharpCompilerServiceChecker()
4243

FsAutoComplete/Program.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ module internal Main =
110110

111111
[<EntryPoint>]
112112
let entry args =
113+
System.Threading.ThreadPool.SetMinThreads(8, 8) |> ignore
113114
Console.InputEncoding <- Text.Encoding.UTF8
114115
Console.OutputEncoding <- new Text.UTF8Encoding(false, false)
115116
let extra = Options.p.Parse args

0 commit comments

Comments
 (0)