Skip to content

feat: add task abstraction - #8

Open
wispl wants to merge 1 commit into
mainfrom
task-abstraction
Open

wispl wants to merge 1 commit into
mainfrom
task-abstraction

Conversation

@wispl

@wispl wispl commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

WIP, need to clear a couple of design decisions first and do a bit of testing before this can be merged

  1. is Registry and pubsub an okay pattern (we no longer have to pass taskhandles around)
  2. Is DoubleBuffer worth it (slightly cleaner code and maybe better performance)

Other than that, everything else is fairly standard.

TODO: we need something to unsubscribe from the Registry, assuming we are keeping that model.

@ncorrea210 ncorrea210 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine for the most part. It is a bit confusing to me how initialization looks for these tasks though. Is initialization done at construction? Is it expected that things like sensors are already initialized when handed off to the task?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants