mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-19 14:22:23 +00:00
Note effect of BOOST_USE_SEGMENTED_STACKS if StackAllocator is not explicitly passed. Introduce function_heading_for QuickBook template to allow separate descriptions of swap(fiber), swap(packaged_task) and swap(promise). Document async() using C++14 std::result_of_t and std::decay_t, aligning with std::async() documentation. Rework when_any / when_all examples to use unbounded_channel throughout, since we always close() the channel after the first value anyway. bounded_channel doesn't really add much value here. Make wait_first_outcome_impl() infer its channel pointer type. That way we can reuse that function instead of coding a separate wait_all_until_error_impl(), which differs only in using the nchannel facade instead of directly pushing to unbounded_channel. Explain use of std::bind() to bind a lambda. Use a more nuanced discussion of promise lifetime in write_ec() example function. Use condition_variable::wait(lock, predicate) in a couple places in work_sharing.cpp example.