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

Commit5ab2403

Browse files
committed
Async.Parallel calls Seq.toArray twice.
1 parent03e548b commit5ab2403

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,8 +1338,6 @@ namespace Microsoft.FSharp.Control
13381338
if tasks.Length=0then args.cont[||]else// must not be in a 'protect' if we call cont explicitly; if cont throws, it should unwind the stack, preserving Dev10 behavior
13391339
protectedPrimitiveCore args(fun args->
13401340
let({ aux= aux}as args)= delimitSyncContext args// manually resync
1341-
lettasks= Seq.toArray l
1342-
if tasks.Length=0then args.cont[||]else
13431341
letcount= ref tasks.Length
13441342
letfirstExn= ref None
13451343
letresults= Array.zeroCreate tasks.Length

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp