Files
StarPilot/starpilot/third_party/reactivex/disposable/booleandisposable.py
T
firestar5683 3d8af2361e Rename
2026-03-27 18:05:44 -05:00

21 lines
482 B
Python

from threading import RLock
from reactivex.abc import DisposableBase
class BooleanDisposable(DisposableBase):
"""Represents a Disposable that can be checked for status."""
def __init__(self) -> None:
"""Initializes a new instance of the BooleanDisposable class."""
self.is_disposed = False
self.lock = RLock()
super().__init__()
def dispose(self) -> None:
"""Sets the status to disposed"""
self.is_disposed = True