SwiftclassAppPredictionInternal

class AppPredictionInternal.PowerThrottlingCreditPool

Members 8

  1. deinitdeinit
  2. fieldlet config: AppPredictionInternal.PowerThrottlingCreditPool.Config
  3. fieldlet logger: os.Logger
  4. fieldlet queue: OS_dispatch_queue
  5. fieldlet state: AppPredictionInternal.PowerThrottlingCreditPool.State?
  6. funcconsume(credits: Int, toRun: () -> ()) -> ()
  7. initAppPredictionInternal.PowerThrottlingCreditPool.__allocating_init(config: AppPredictionInternal.PowerThrottlingCreditPool.Config) -> AppPredictionInternal.PowerThrottlingCreditPool
  8. initAppPredictionInternal.PowerThrottlingCreditPool.__allocating_init() -> AppPredictionInternal.PowerThrottlingCreditPool
@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
}