Package wait provides tools for polling or listening for changes to a condition.
go get gomodules.xyz/wait