I currently have this cdq setup from the wiki to support a persistent background thread
1. cdq.contexts.push(:root)
2. cdq.contexts.push(:main)
3. cdq.contexts.push(:private, named: :network)
4.
5. cdq.contexts.on(:network) do |network_context|
6.
7. cdq.save(network_context, always_wait: true)
8. cdq.save(:main)
9. end
Line 5 throws the following error
context.rb:261:in `on:': expected Proc with 0 arguments (got 1) (ArgumentError)
which comes from this line https://github.com/infinitered/cdq/blob/master/motion/cdq/context.rb#L261.
Is there anything I am missing or is the example in the wiki outdated.
I basically want to support a persistent background thread with access to the context being used.
I currently have this cdq setup from the wiki to support a persistent background thread
Line 5 throws the following error
which comes from this line https://github.com/infinitered/cdq/blob/master/motion/cdq/context.rb#L261.
Is there anything I am missing or is the example in the wiki outdated.
I basically want to support a persistent background thread with access to the context being used.