class_docstr: Fixed size FIFO container.
class_docstr_tok: ["Fixed","size","FIFO","container","."]
code: def __init__(self, size: int):
      self._data: list[T | None] = [None] * size
      self._cur = 0
      self._size = size
      self._flag_full = False
  
file_path: BentoML/src/bentoml/_internal/utils/alg.py
imports: from __future__ import annotations
  import time
  import typing
label_desc: Use image node_id 1 to create a new FixedBucket object from inherited base classes: t.Generic with example: obj = FixedBucket(size)