Add promise.fn() method for proxying an eventual function promise result