Advertisement
Guest User

Untitled

a guest
Nov 30th, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.53 KB | None | 0 0
  1. let GetAllVersions packageName =
  2.   sources
  3.   |> Seq.map (fun source -> async {
  4.       match! getVersionsViaNuGetProtocol1 source packageName,
  5.              getVersionsViaNuGetProtocol2 source packageName,
  6.              getVersionsViaNuGetProtocol3 source packageName,
  7.              getVersionsViaNuGetProtocol4 source packageName with
  8.       | res, ?, ?, ?
  9.       | ?, res, ?, ?
  10.       | ?, ?, res, ?
  11.       | ?, ?, ?, res -> return res })
  12.   |> Async.Parallel
  13.   |> Async.RunSynchronously
  14.   |> Array.choose id
  15.   |> Array.concat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement