Add when signature for Promise<void>
Add test for new when signature
Merge pull request #3214 from jbblanchet/master

Add when signature for Promise<void>