You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The general idea is to be able to identify threads which are "idle", because it's useful. In order to achieve this the namedtuples returned by Process.threads() may provide either an is_active boolean field or a status field returning a string similar to the process STATUS_* constants.
The text was updated successfully, but these errors were encountered:
This idea was inspired by https://github.com/benfred/py-spy#how-do-you-detect-if-a-thread-is-idle-or-not.
It should be possible to determine thread status:
The general idea is to be able to identify threads which are "idle", because it's useful. In order to achieve this the namedtuples returned by
Process.threads()
may provide either anis_active
boolean field or astatus
field returning a string similar to the processSTATUS_*
constants.The text was updated successfully, but these errors were encountered: