rools
rools copied to clipboard
Should be used sync function in when ?
I'm trying rules engine to implement evaludate articles to accept automatically.
I researched rules enginer and rools module looks good for me.
However, there is a part that has been hesitating.
I think when conditions could be async functions. Is it should be compose of sync functions ?
yes, premises (when) are always working synchronously on the facts.
Thanks for your answer. Can I get a some refference to understand the reason why Promises are always working synchronously ?
Thanks for the question. The answer is probably for performance reasons and because I was thinking that it is not required. But why not. Let me think about it.