support calling asyncMethod with function reference or method name