Hi, I can't seem to find any examples for the content processed completion handler
connection.send(content: data , contentContext: context, completion:
NWConnection.SendCompletion.contentProcessed(({ (error) in
if let err = error {
print("\(err)")
} else {
print("Sent successfully")
}
})))
I think its used to implement send side flow control, but I want to know if anyone has any good examples of it being applied that would help me understand it better.
If I'm sending a constant stream of data how can I use this completion handler to respect the back-pressure from the connection