Specify an ending condition for this trigger. If the
until
Trigger fires then
the combination fires.
The expression
t1.orFinally(t2) fires every time
t1 fires, and finishes as
soon as either
t1 finishes or
t2 fires, in which case it fires one last time
for
t2. Both
t1 and
t2 are executed in parallel. This means that
t1 may have fired since
t2 started, so not all of the elements that
t2 has
seen are necessarily in the current pane.
For example the final firing of the following trigger may only have 1 element:
Repeatedly.forever(AfterPane.elementCountAtLeast(2))
Note that if
t1 is
OnceTrigger, then
t1.orFinally(t2) is the same as
AfterFirst.of(t1, t2).