Utility method to run function either synchornously or asynchronously using the common `this.async()` style.