folly/futures: use folly::Function to store callback