# PingManager **Repository Path**: code_xiao_li/PingManager ## Basic Information - **Project Name**: PingManager - **Description**: No description available - **Primary Language**: Swift - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-11 - **Last Updated**: 2021-06-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PingManager Supports multiple pings at the same time, and greatly reduces thread resource consumption ## CocoaPods To include PingManager in a project using CocoaPods, you just add PingManager to your Podfile, for example: platform :ios, '10.0' target 'MyApp' do use_frameworks! pod 'PingManager' end ## Example ![1.gif](https://github.com/Yewenyu/PingManager/blob/master/1.gif) ![2.gif](https://github.com/Yewenyu/PingManager/blob/master/2.gif) ## Usage ``` for host in hostArray{ let ping = Ping() ping.delegate = self ping.host = host PingMannager.shared.add(ping) } PingMannager.shared.setup { $0.timeout = self.timeout $0.pingPeriod = self.period $0.startPing() } ```