A small library for syncing up a thread with some flexible configuration of external event(s).