hardbyte / hardbyte/python-can

Consider exposing task stopped state

Đang mở
#422 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Python
Star
1.6k
Fork
697
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.