Sometimes the code you are unit testing is threaded. It is useful to have a mechanism to wait for mocks to be consumed to avoid having to do white-box testing where you alter your production code to know when something is completed by the thread.
I suggest adding a function called wait_for_consumption() which takes a Duration as a timeout. It should block until expectations have been consumed or panic if the timeout is reached.
I made a pull request for this: #138