 
 import Foundation
 import CoreBluetooth
-
-// MARK: - Constants
-
-/// once token for -prepare()
-private var onceToken = Int()
 
 // MARK: - Protocol
 @objc public protocol CustomPeripheral: NSObjectProtocol {


	- parameter completion: a block after completed preparing
	*/
	@available(*, deprecated, message: "no more preparation")
	public class func prepare(_ completion: ((_ available: Bool) -> Void)?) {
		prepare(withCentralIdentifier: CUSP_CENTRAL_IDENTIFIER_DEFAULT, completion: completion)
	}


	- parameter restoreIdentifier: a UID for restoring central after app back into foreground
	- parameter completion:		   a block after completed preparing
	*/
	class func prepare(withCentralIdentifier restoreIdentifier: String?, completion: ((_ available: Bool) -> Void)?) {
		centralRestoreIdentifier = restoreIdentifier
		// since checking ble status needs little
		_ = self.isBLEAvailable()
		CuspCentral.defaultCentral.mainQ.asyncAfter(deadline: DispatchTime.now() + Double(0.1), execute: {
			DispatchQueue.main.async(execute: {
				completion?(self.isBLEAvailable())
			})
