Hi list,<div><br></div><div>a new release of erlymock was uploaded to github, </div><div>containing a single new function 'em:await(Mock, ExpectationRef)':</div><div><br></div><div><a href="http://sheyll.github.com/erlymock/em.html#await-2">http://sheyll.github.com/erlymock/em.html#await-2</a></div>
<div><br></div><div>It can be used</div><div>1. to block the test until some async invokation of a mocked function has happened and</div><div>2. to 'capture' the parameters and pid of an invokation.</div><div><br>
</div><div>Internally we usually use a fun that send some message to the test process as parameter to em:strict/5 in combination with 'receive' to block the test process.</div><div><br></div><div>With this release this should not be necessary anymore.</div>
<div><br></div><div>Calling 'em:strict/4,5' will now return a reference to the expectation which can be passed to 'em:await/2' to wait for that expecation.</div><div><br></div><div>I really think, as small as this change seems, it is useful enough to be announced. </div>
<div><br></div><div>Also this is release has a new major version: 4.0.0. >From now on semantic versioning 2.0.0-rc1 will be followed.</div><div><br></div><div>Cheers,</div><div>Sven</div>