Last time, we transported some ephemeral error state from the temporary fiber to the originating thread. A common way of reporting an error in C++ is to use an exception, so let's use that. In this case, we capture the result of the callback with a std::variant of an exception_ptr or the formal return value. The exception_ptr is used if th
Propagating additional thread state.
Reducing code size with type erasure.
The simple return value.
You can use fibers, but you need to use them carefully.
So you can pull them back out.
Let the error message tell you.
Sort of like Bob and Carol for Win32.
It was never yours to begin with.
Like Bob or Carol?