`hal::sync` is a good option.