Closed lukecheeseman closed 9 months ago
@mjp41 suggested an alternative that i'll look into to.
In brief, rather than sorting and uniqueing (which is quite expensive for a use case we don't expect very often), we can use the sorted collection of cowns that appears later in the runtime and chain together repeated requests to decrement the execution count there.
Now done in #34
Requesting the same cown multiple times in a when was creating a behaviour that wouldn't run.
This would also block any subsequent happens after behaviour for the cowns invloved.
The DAG doesn't need multiple entries for the same behaviour on a cown and we need to also ensure the count down latch is correct.
When constructing the initial array of requests, they are sorted and uniqued.