Synonym of not a minute too soon
At the last minute; before the deadline; barely on time; nearly late.
Across the finish line.