Д
а фарш флудилку испортить нельзя
Size: a a a
Д
NM
NM
NM
hs
hs
hs
NM
NM
hs
P
M
NM
IsCancellationRequested
?|> Async.WithToken ct |> Async.Catch
let cmp =
async {
while true do
if (ct.IsCancellationRequested) then raise (TaskCanceledException())
if 1 = 2 then failwith "asd"
} |> Async.Catch
let! r = cmp
match r with
| Choice1Of2 x -> printfn "Done!"
| Choice2Of2 e -> printfn "Error %A" e
VK
IsCancellationRequested
?|> Async.WithToken ct |> Async.Catch
let cmp =
async {
while true do
if (ct.IsCancellationRequested) then raise (TaskCanceledException())
if 1 = 2 then failwith "asd"
} |> Async.Catch
let! r = cmp
match r with
| Choice1Of2 x -> printfn "Done!"
| Choice2Of2 e -> printfn "Error %A" e
SB
NM
Async.Start
надо вызывать, и хз как получить Choice
VK
Async.Start
надо вызывать, и хз как получить Choice
VS
AH
IsCancellationRequested
?|> Async.WithToken ct |> Async.Catch
let cmp =
async {
while true do
if (ct.IsCancellationRequested) then raise (TaskCanceledException())
if 1 = 2 then failwith "asd"
} |> Async.Catch
let! r = cmp
match r with
| Choice1Of2 x -> printfn "Done!"
| Choice2Of2 e -> printfn "Error %A" e
Д