<div dir="ltr">Hi,<div><br></div><div>If I have an escaping function that I store and then call, I need to declare the calling function as throwing, not rethrowing. EG:</div><div>
<p class="gmail-p1"><span class="gmail-s1"> </span>struct FStore {<br> let f: () throws -> Void<br> init(f: @escaping () throws -> Void) { self.f = f }<br> func call() throws { try f() } // Can't put rethrows here - have to use throws<br> }</p></div><div>Is there a better solution?</div><div><br></div><div>Thanks for any suggestions,</div><div><br clear="all"><div><div class="gmail_signature"> -- Howard.<br></div></div>
</div></div>