File: startable.py

package info (click to toggle)
python-rx 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,204 kB
  • sloc: python: 39,525; javascript: 77; makefile: 24
file content (14 lines) | stat: -rw-r--r-- 266 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from abc import ABC, abstractmethod


class StartableBase(ABC):
    """Abstract base class for Thread- and Process-like objects."""

    __slots__ = ()

    @abstractmethod
    def start(self) -> None:
        raise NotImplementedError


__all__ = ["StartableBase"]