2021年4月11日星期日

Try..With Block is hanging after the First Error F#

I am fairly new to F# and my code is "hanging" after the first instance of an error. It just does nothing really.

This is at the very end of a function the call is a SOAP call to an API endpoint.

        try               let a = client.catalogProductCreateAsync(sessionId, "simple","4",priceListItem.sku, productData, "").Result              printfn "%A" a          with ex ->              printfn "%A" ex          "" // blank string returned - not relevant to the above - it's just the end of the funciton  
https://stackoverflow.com/questions/67052170/try-with-block-is-hanging-after-the-first-error-f April 12, 2021 at 11:06AM

没有评论:

发表评论