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