With some analog magic ...
The re-triggerable one-shot circuit is analog magic too!
In my youth (age thirty or so) I eschewed one-shot multi-vibrators like the SN74123 because I perceived they weren't "truly digital" logic circuits. Fortunately, I soon got over it, which enabled me to also embrace the wonders of the NE555 for hybrid analog/digital circuit design. Some problem solutions appear to just
require analog-generated time delays. The following is an example...
Years ago I had to interface a quadrature bi-directional rotary optical encoder to a precision lead-screw that, nevertheless, had some backlash. That means that even driving in the same direction, the rotary encoder would often move slightly in the opposite direction when starting and stopping. The problem was how to detect and count the pulses in either direction without losing any counts or gaining erroneous counts.
IIRC, this can be fairly easily done using flip-flops and logic gates to drive an up-down counter from the quadrature position pulses, but a problem occurs if the encoder stops briefly, immediately after an edge transition on one phase, and resumes motion in the opposite direction without a change in the other phase to indicate the new direction. This causes an erroneous additional count in the same direction as occurred before the actual change in direction. We could see this effect occurring while rotating the optical encoder back and forth by hand, observing the counts displayed on a commercial up/down counter display that was allegedly "quadrature ready" for up/down counting. With small motions we could get the counter to increment (or decrement) continuously in one direction even though the net rotation was zero!
I think this problem was finally resolved with one-shots triggered off the quadrature pulses, but the details escape me... The problem was apparently well-known, because twenty years after I solved the problem a company began selling a
"signal conditioning board" to do the same thing.