std-async

Tag

Cards List
#std-async

C++ futures part 4: What if I want an immediate on-thread std::async?

The Old New Thing (Raymond Chen) ↗ · 2026-10-15 Cached

Raymond Chen explores workarounds for creating an immediate on-thread std::future in C++, using std::promise, std::packaged_task, or a deferred std::async that is waited on immediately.

0 favorites 0 likes
#std-async

C++ futures part 3: The mental model for std::async

The Old New Thing (Raymond Chen) ↗ · 2026-10-14 Cached

Raymond Chen 解释 C++ std::async 的心智模型,说明 launch 策略的两个维度(立即/延迟、同线程/新线程)中哪些组合是标准允许的,哪些被禁止或由实现决定。

0 favorites 0 likes
#std-async

std::call_once vs. std::async

The Old New Thing (Raymond Chen) ↗ · 2026-09-17 Cached

The article compares std::call_once and std::async for deferred execution in C++, discussing their differences in implementation, performance, and exception behavior.

0 favorites 0 likes
← Back to home

Submit Feedback