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