While debugging NEPacketTunnelProvider I found that it's startTunnel and stopTunnel are being run not on the first thread.
The question is can I use DispatchQueue.main in Network Extensions? Are there any things to watch out for when dealing with async code inside Network Extensions?
`DispatchQueue.main` inside Network Extension
Add a Comment