Typical nodejs callback example
Example using when but requiring to modify underlying code