hardbyte / hardbyte/python-can

Consider exposing task stopped state

Open
#422 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
1.6k
Forks
697
PR merge metrics
No merged PRs in 30d

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.