apple / swift-service-discovery

A service discovery API for Swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clarify callback threads

Lukasa opened this issue · comments

Multiple ServiceDiscovery methods provide callbacks that will be invoked, but the protocol sets no guidance as to which threads those callbacks are to be invoked on. Currently they're invoked on arbitrary threads at the whim of the service discovery implementation. This is fine, if we want to do that, but we should write down that that's what will happen.