:right-sidebar: True Thread =================================================================== .. currentmodule:: gi.repository.GObject .. class:: Thread(*args, **kwargs) :no-contents-entry: :Constructors: :: Thread() new(name:str=None, func:GLib.ThreadFunc, data=None) -> GLib.Thread try_new(name:str=None, func:GLib.ThreadFunc, data=None) -> GLib.Thread Constructors ------------ .. rst-class:: interim-class .. class:: Thread :no-index: .. classmethod:: new(name: str | None, func: ~typing.Callable[[~typing.Any], ~typing.Any | None], data: ~typing.Any = None) -> ~gi.repository.GLib.Thread :param name: :param func: :param data: .. classmethod:: try_new(name: str | None, func: ~typing.Callable[[~typing.Any], ~typing.Any | None], data: ~typing.Any = None) -> ~gi.repository.GLib.Thread :param name: :param func: :param data: Methods ------- .. rst-class:: interim-class .. class:: Thread :no-index: .. classmethod:: error_quark() -> int .. classmethod:: exit() -> None .. method:: join() -> ~typing.Any | None .. classmethod:: self() -> ~gi.repository.GLib.Thread .. classmethod:: yield_() -> None Fields ------ .. rst-class:: interim-class .. class:: Thread :no-index: .. attribute:: data .. attribute:: func .. attribute:: joinable .. attribute:: priority