Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita4d329e

Browse files
author
Gustavo Guerra
committed
Fix compilation errors in control.fs
1 parentb41ad1a commita4d329e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎src/fsharp/FSharp.Core/control.fs‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,6 +1502,16 @@ namespace Microsoft.FSharp.Control
15021502
// run actual await routine
15031503
// callback will be executed on the thread pool so we need to use TrampolineHolder.Protect to install trampoline
15041504
try
1505+
#if FX_NO_TASK
1506+
ThreadPool.QueueUserWorkItem((fun _->
1507+
letasyncResult= WaitHandleIAsyncResult(waitHandle):> System.IAsyncResult
1508+
if asyncResult.IsCompletedthen
1509+
if latch.Enter()then
1510+
registration.Dispose()
1511+
aux.trampolineHolder.Protect(fun()-> sconttrue)
1512+
|> unfake
1513+
),null)|> ignore
1514+
#else
15051515
Task.Factory.FromAsync
15061516
(
15071517
WaitHandleIAsyncResult(waitHandle),
@@ -1512,6 +1522,7 @@ namespace Microsoft.FSharp.Control
15121522
|> unfake
15131523
)
15141524
|> ignore
1525+
#endif
15151526
// if user has specified timeout different from Timeout.Infinite
15161527
// then start another async to track timeout expiration
15171528
// StartWithContinuations already installs trampoline so we can invoke continuation directly

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp