Add support for declaring expected number of resumes separate from/before await/sleep calls.
Fail with IllegalStateException when resume is called with nobody waiting.