Skip to content
Discussion options

You must be logged in to vote

Running the same set of systems multiple times itself is fine, but I would caution against using chain this way unless the entire thing should be sequenced linearly... so, for example, if "check_win" & "check_open_shut" don't have to happen in sequence, I'd recommend not running it as a chain.

Instead I would do one of a couple of things:

  • if I have a sequenced situation and want to stick to a non-schedule based solution, I'd do something like this:
(
(update_pos_map, add_text_components),
apply_deferred,
(find_sequence.pipe(get_rules), update_active.run_if(resource_changed::<ActiveRules>()),
apply_deferred
).chain()
  • otherwise, if I can separate out the logic into segments that make sen…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by A-Walrus
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