You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
forThisXPCService() always returns the same instance
forThisBlessedHelperTool() and forThisMachService(...) return new instances each time
This inconsistency is undesirable as the server is stateful with routes and an error handler.
However, in practice this probably wouldn't be much of an issue as it's hard to envision why one of these functions would be called multiple times.
The text was updated successfully, but these errors were encountered:
jakaplan
changed the title
XPCServer factory functions should always return the same instanceXPCServer factory functions should always return the same instance
Nov 11, 2021
XPCMachServer now internally manages a cache of servers and returns an existing one when possible or throws an error if the requirements do not match. Adds "XPCServer Creation.swift" to test this behavior.
All language for the server as well as the client now refers to "retrieve" or "retrieving" instead of "create" or "creating".
Currently:
forThisXPCService()
always returns the same instanceforThisBlessedHelperTool()
andforThisMachService(...)
return new instances each timeThis inconsistency is undesirable as the server is stateful with routes and an error handler.
However, in practice this probably wouldn't be much of an issue as it's hard to envision why one of these functions would be called multiple times.
The text was updated successfully, but these errors were encountered: