оГ
Size: a a a
оГ
VS
VS
NM
VS
VS
оГ
оГ
VS
NM
оГ
NM
AH
let tryUploadFileAsync fileType =
async {
match fileType with
| "image" -> return Some 1L
| "uploading_not_required" -> return None
| _ -> return failwithf "%s uploading is not supported" fileType
}
module Async =
let map f x = async.Bind(x, f >> async.Return)
let files = []
let maybeAsyncUploadedFiles =
files
|> Seq.map tryUploadFileAsync
|> Async.Sequential
|> Async.Catch
|> Async.map (function
| Choice1Of2 allIdList -> ()
| Choice2Of2 error -> ()
)
AH
AH
AH
NM
Async.Sequential
ток нет в стандартной либеAH
Async.Sequential
ток нет в стандартной либе