An utility to write asynchronous routines within OOP contexts