<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">Glad to know the answer. And thank you, Slava and Daniel.​ </div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Zhao Xin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 12, 2017 at 7:53 AM, Daniel Dunbar <span dir="ltr">&lt;<a href="mailto:daniel_dunbar@apple.com" target="_blank">daniel_dunbar@apple.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="word-wrap:break-word"><br><div><blockquote type="cite"><span class=""><div>On Jul 11, 2017, at 3:55 PM, Zhao Xin via swift-users &lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt; wrote:</div><br class="m_-8144812594483249226Apple-interchange-newline"></span><span class=""><div><div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">For example, I have an async query, I pass it an `@escaping resultHandler`. If there is any results, the handler will run. However, if the result is empty, the `@escaping resultHandler` will never run.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Is there any memory leak or something will happen if the `@escaping resultHandler` never runs?</div></div></div></span></blockquote><div><br></div>No, assuming your handler has been written to not participate in a retain cycle (for example, ensuring you use [weak self] if appropriate).</div><span class="HOEnZb"><font color="#888888"><div><br></div><div> - Daniel</div></font></span><span class=""><div><br><blockquote type="cite"><div><div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">Zhao Xin</div></div>
______________________________<wbr>_________________<br>swift-users mailing list<br><a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-users" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-users</a><br></div></blockquote></div><br></span></div></div></blockquote></div><br></div>