NM
Size: a a a
NM
оГ
AH
let maybeAsyncUploadedFiles: Async<ResizeArray<int64>> =
AsyncSeq.ofSeq files
|> AsyncSeq.mapAsync tryUploadFileAsync
|> AsyncSeq.fold(fun maybeList file ->
maybeList
|> Result.bind (fun (list: ResizeArray<_>) ->
match file with
| Result.Ok (Some r) -> list.Add r ; Result.Ok list
| Result.Ok None -> list.Add -1L; Result.Ok list
| Result.Error e -> Result.Error list)
) (Result.Ok(ResizeArray()))
|> Async.map (function Ok x | Error x -> x)
NM
AH
AH
AH
оГ
NM
AH
оГ
оГ
AH
оГ
NM
оГ
оГ
оГ
NM
NM