class_docstr: Actor handling worker memory quota
class_docstr_tok: ["Actor","handling","worker","memory","quota"]
code: def __init__(
      self,
      band: BandType,
      quota_size: int,
      hard_limit: int = None,
      refresh_time: Union[int, float] = None,
      enable_kill_slot: bool = True,
  ):
      super().__init__(band, quota_size)
      self._hard_limit = hard_limit
      self._last_memory_available = 0
      self._refresh_time = refresh_time or 1
  
      self._enable_kill_slot = enable_kill_slot
  
      self._stat_refresh_task = None
      self._slot_manager_ref = None
  
imports: import asyncio
  import itertools
  import logging
  import time
  from collections import namedtuple, OrderedDict
  from dataclasses import dataclass
  from typing import Dict, Optional, Tuple, Union
  from ....None import oscar
  from ....None import resource
  from ....typing import BandType
  from ...cluster import QuotaInfo
label_desc: Use image node_id 1 to create a new MemQuotaActor object from inherited base classes: QuotaActor with example: obj = MemQuotaActor(band, quota_size, hard_limit, refresh_time, enable_kill_slot)