Use functor object as main argument of callAndWait