@@ -407,29 +407,13 @@ namespace Microsoft.FSharp.Control
407407 WaitCallback( fun o ->
408408let f = unbox o: unit-> AsyncReturn
409409 trampolineHolder.Execute f|> unfake)
410-
411- let startThreadWithTrampoline ( trampolineHolder : TrampolineHolder ) ( f : unit -> AsyncReturn ) =
412- #if FX_ NO_ THREAD
413- if not ( ThreadPool.QueueUserWorkItem(( waitCallbackForQueueWorkItemWithTrampoline trampolineHolder), f|> box)) then
414- failwith" failed to queue user work item"
415- FakeUnit
416- #else
417- ( new Thread(( fun _ -> trampolineHolder.Execute f|> unfake), IsBackground= true )) .Start()
418- FakeUnit
419- #endif
420-
421410#else
422411
423412// Statically preallocate the delegate
424413let threadStartCallbackForStartThreadWithTrampoline =
425414 ParameterizedThreadStart( fun o ->
426415let ( trampolineHolder , f ) = unbox o: TrampolineHolder* ( unit-> AsyncReturn)
427416 trampolineHolder.Execute f|> unfake)
428-
429- // This should be the only call to Thread.Start in this library. We must always install a trampoline.
430- let startThreadWithTrampoline ( trampolineHolder : TrampolineHolder ) ( f : unit -> AsyncReturn ) =
431- ( new Thread( threadStartCallbackForStartThreadWithTrampoline, IsBackground= true )) .Start(( trampolineHolder, f)|> box)
432- FakeUnit
433417#endif
434418
435419let startAsync cancellationToken cont econt ccont p =