Forces the fiber to have a future that outlives the fiber.
More...
#include <async.h>
Forces the fiber to have a future that outlives the fiber.
This is a manipulator that calls zth::TypedFiber::withFuture(). Example:
int foo() { ... }
return *f;
}
#define zth_async
Run a function as a new fiber.
#define zth_fiber(...)
Prepare every given function to become a fiber by zth_async.
int main_fiber(int argc, char **argv)
Forces the fiber to have a future that outlives the fiber.
- Examples
- 2_fibers.cpp.
Definition at line 310 of file async.h.
The documentation for this struct was generated from the following file: