Use folly::Function in folly::EventBase