CocoaPods trunk is moving to be read-only. Read more on the blog, there are 9 months to go.

PingManager 0.1.8

PingManager 0.1.8

Maintained by Wenyu.



  • By
  • no

PingManager

Supports multiple pings at the same time, and greatly reduces thread resource consumption

Example

1.gif 2.gif

Usage

for host in hostArray{
   let ping = Ping()
   ping.delegate = self
   ping.host = host
   PingMannager.shared.add(ping)
}
PingMannager.shared.setup {
   PingMannager.shared.timeout = self.timeout
   PingMannager.shared.pingPeriod = self.period
   PingMannager.shared.startPing()
}