---
title: "Discussion on \"Folly::future V.S. std::future\" | Hashnode"
description: "Discussion on \"Folly::future V.S. std::future\". #include <future>\n#include <iostream>\n#include <thread>\n\nint main()\n{\n    // future from a packaged_task\n    std::packaged_task<int()> task([]{ return 7; }); // wrap the function\n    std::future<int> f1 = task.get_future(); // get a future\n    std::t..."
url: "https://hashnode.com/posts/follyfuture-vs-stdfuture/679dc627ed8faf28a2d886ba"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Folly::future V.S. std::future](https://noahyao.me/follyfuture-vs-stdfuture?utm_source=hashnode&utm_medium=feed)

#include <future> #include <iostream> #include <thread> int main() { // future from a packaged\_task std::packaged\_task<int()> task(\[\]{ return 7; }); // wrap the function std::future<int> f1 = task.get\_future(); // get a future std::t...

Feb 1, 2025 · 1 min read · noahyao.me  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)

## Written by

[Noah Yao](https://hashnode.com/@noahyao1024)

@noahyao1024 · Vancouver, CA

  
[View profile](https://hashnode.com/@noahyao1024)

Developer

I’m a backend developer based in Beijing, passionate about crafting efficient and scalable solutions. Amidst my coding endeavors, I’ve embarked on an exciting journey as an active English learner. Exploring the intricacies of language allows me to broaden my horizons and connect with diverse communities worldwide. Join me as I navigate the realms of technology and language, striving for excellence in both.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
