mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-05 23:04:51 +00:00
Update Client.idle() docstrings to make summary clearer
This commit is contained in:
parent
448a65bb6d
commit
e039c1fb80
1 changed files with 4 additions and 2 deletions
|
|
@ -395,8 +395,10 @@ class Client(Methods, BaseClient):
|
||||||
self.start()
|
self.start()
|
||||||
|
|
||||||
def idle(self, stop_signals: tuple = (SIGINT, SIGTERM, SIGABRT)):
|
def idle(self, stop_signals: tuple = (SIGINT, SIGTERM, SIGABRT)):
|
||||||
"""Block the main script execution until a signal (e.g.: from CTRL+C) is received.
|
"""Block the main script execution until a signal is received.
|
||||||
Once the signal is received, the client will automatically stop and the main script will continue its execution.
|
|
||||||
|
Once the signal is received (e.g.: from CTRL+C), the client will automatically stop and the main script will
|
||||||
|
continue its execution.
|
||||||
|
|
||||||
This is used after starting one or more clients and is useful for event-driven applications only, that are,
|
This is used after starting one or more clients and is useful for event-driven applications only, that are,
|
||||||
applications which react upon incoming Telegram updates through handlers, rather than executing a set of methods
|
applications which react upon incoming Telegram updates through handlers, rather than executing a set of methods
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue