<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 20, 2017, at 9:55 AM, Ian Partridge via swift-corelibs-dev &lt;<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">On Darwin, asynchronous usage of Operation is supported via KVO notifications.<div class=""><br class=""></div><div class="">Because KVO is only available on Darwin platforms, swift-corelibs-foundation currently does not support asychronous Operations, and there is a comment to that effect:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/apple/swift-corelibs-foundation/blob/6c2afef20330681ec1f8e4e4e3e2664bfd758888/Foundation/NSOperation.swift#L50" class="">https://github.com/apple/swift-corelibs-foundation/blob/6c2afef20330681ec1f8e4e4e3e2664bfd758888/Foundation/NSOperation.swift#L50</a><br class=""></div><div class=""><br class=""></div><div class="">My understanding is that it's unlikely KVO will arrive on Linux any time soon, so this leaves us with a problem in Operation.&nbsp; Asynchronous usage of Operation is an important feature.</div><div class=""><br class=""></div><div class="">Is there any way that we could support asynchronous operations in swift-corelibs-foundation, in the absence of KVO?</div><div class=""><br class=""></div><div class="">Might it be acceptable to add extra temporary public API to enable this?</div></div></div></blockquote><div><br class=""></div><div>+ 1. &nbsp;IMO eliminating the dependence of an API like this on KVO would be a good thing regardless of whether KVO is present or not.</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">Many thanks,<br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature">Ian Partridge<br class=""></div>
<br class="">
</div></div>
_______________________________________________<br class="">swift-corelibs-dev mailing list<br class=""><a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev<br class=""></div></blockquote></div><br class=""></body></html>