hardbyte / hardbyte/python-can

Consider exposing task stopped state

Ouverte
#422 0 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Python
Étoiles
1.6k
Forks
697
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

While testing the cyclic tasks for https://github.com/hardbyte/python-can/pull/412 I noticed we don't expose whether a task is currently active or stopped. Specifically I was trying to see the state of `ThreadBasedCyclicSendTask` which has a `stopped` boolean attribute which isn't in the Task api and ASFAIK isn't thread safe.

If this was modified to be a property we could check an underlying driver/kernel for various backends to query if the task is active.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.