AdvertiserVirtualSocketBuilder.createVirtualSocket() doesn't declare the completion handler as an input argument but AdvertiserVirtualSocketBuilder.init() does and then the completion handler is used by createVirtualSocket().
Not a bug per se, but a bad design that should be fixed.
AdvertiserRelay.createVirtualSocket()
andAdvertiserVirtualSocketBuilder.createVirtualSocket()
are declared asynchronous given they require an escaping completion handler, but they are strictly synchronous.AdvertiserVirtualSocketBuilder.createVirtualSocket()
doesn't declare the completion handler as an input argument butAdvertiserVirtualSocketBuilder.init()
does and then the completion handler is used bycreateVirtualSocket()
.Not a bug per se, but a bad design that should be fixed.