Swift throw from closure nested in a function

前端 未结 5 1480
醉话见心
醉话见心 2020-12-30 21:15

I have a function that throws an error, in this function I have a inside a closure that I need to throw the error from it\'s completion handler. Is that possibl

5条回答
  •  天命终不由人
    2020-12-30 21:57

    You can not make function with throw, but return a closure with status or error! If it's not clear I can give some code.

提交回复
热议问题