Skip to content

Background thread feeding data #633

Closed Answered by AaronErhardt
BigfootN asked this question in Q&A
Discussion options

You must be logged in to vote

So if I understand well, the idea would be to have the update_cmd implemented at the "root" window and pass it along to the concerned sub component (N levels below) ?

No, you can implement the update_cmd method for the component for which you need it. The basic idea is to:

  1. Spawn your loop thread as command using spawn_command
  2. Every time you receive data, send it as a command output message to your component
  3. Process the command output message in update_cmd

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@BigfootN
Comment options

@AaronErhardt
Comment options

Answer selected by BigfootN
@BigfootN
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants