[swift-users] Is there any harm that an @escaping handler never called?

Zhao Xin owenzx at gmail.com
Tue Jul 11 17:55:28 CDT 2017


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.

Is there any memory leak or something will happen if the `@escaping
resultHandler` never runs?

Zhao Xin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170712/9d514fd1/attachment.html>


More information about the swift-users mailing list