1338
1338
if tasks.Length = 0 then 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
1339
1339
protectedPrimitiveCore args (fun args ->
1340
1340
let ({ aux = aux } as args) = delimitSyncContext args // manually resync
1343
1341
let count = ref tasks.Length
1345
1343
let results = Array.zeroCreate tasks.Length