def is_mainthread(thread=None):
    thread = thread if thread is not None else current_thread()
    return isinstance(thread, threading._MainThread)
Installs an app. Blocks until the installation is complete, or raises :exc:`AppInstallError` if it fails.
dataset/ETHPy150Open quantmind/pulsar/pulsar/async/access.py/is_mainthread--crossover with--dataset/ETHPy150Open pebble/libpebble2/libpebble2/services/install.py/AppInstaller.install