when you pass in a func to an apply method, is it executed async?
06/20/2022, 8:49 PM
yes, it's executed when the outputs resolve
06/20/2022, 9:39 PM
can this behaviour be changed? Reason I ask is I call a console app from a method I invoke in the apply. I am getting errors about conflicting values (the values are being persisted in octopus deploy). So I need the method call to be blocking.
06/20/2022, 9:44 PM
no it can't be changed, but you can add your own logic inside the apply to block
06/20/2022, 9:45 PM
hmm some way to block. I am not quite sure the best way. Either i get all the values first and then invoke the callback, or I call the callback and wait for it to finish before it is executed again.
ok i think this is fixed by using async/await. I will get guidance from a c# forum to tidy this up but I think is good for now. 🙂