SwiftclassAppPredictionInternal
PowerThrottlingCreditPool
class AppPredictionInternal.PowerThrottlingCreditPool
Members 8
- deinit
deinit - field
let config: AppPredictionInternal.PowerThrottlingCreditPool.Config - field
let logger: os.Logger - field
let queue: OS_dispatch_queue - field
let state: AppPredictionInternal.PowerThrottlingCreditPool.State? - func
consume(credits: Int, toRun: () -> ()) -> () - init
AppPredictionInternal.PowerThrottlingCreditPool.__allocating_init(config: AppPredictionInternal.PowerThrottlingCreditPool.Config) -> AppPredictionInternal.PowerThrottlingCreditPool - init
AppPredictionInternal.PowerThrottlingCreditPool.__allocating_init() -> AppPredictionInternal.PowerThrottlingCreditPool
Header
@objc(ATXPowerThrottlingCreditPool) class PowerThrottlingCreditPool: __C.NSObject { @objc(ATXPowerThrottlingCreditPoolConfig) class Config: __C.NSObject { let identifier: Swift.String let maxCredits: Swift.Int let secondsToReplenishOneCredit: Swift.Int let loggingSubsystem: Swift.String let loggingCategory: Swift.String init(identifier: Swift.String, maxCredits: Swift.Int, secondsToReplenishOneCredit: Swift.Int, loggingSubsystem: Swift.String, loggingCategory: Swift.String) init() deinit } class State { let defaults: __C.NSUserDefaults let config: AppPredictionInternal.PowerThrottlingCreditPool.Config } let state: AppPredictionInternal.PowerThrottlingCreditPool.State? let config: AppPredictionInternal.PowerThrottlingCreditPool.Config let logger: os.Logger let queue: __C.OS_dispatch_queue init(config: AppPredictionInternal.PowerThrottlingCreditPool.Config) func consume(credits: Swift.Int, toRun: () -> ()) init() deinit }