json-rules-engine icon indicating copy to clipboard operation
json-rules-engine copied to clipboard

Async Operator

Open ctaity opened this issue 3 years ago • 1 comments

Is posible to have an async operator?

ctaity avatar Jul 20 '21 17:07 ctaity

NOTE: I'm not the maintainer, just an interested party.

Not right now by the looks of it, but because condition.evaluate returns a promise. It should be pretty easy to put in a PR to create async operators (though with async facts, I'm not sure if there would be value in muddying the API further).

That being said, if you needed something in the immedaite term, it's likely you could just use an async fact.

akmjenkins avatar Oct 14 '21 13:10 akmjenkins