|
Hegel 0.11.4
Property-based testing for C++
|
Handle to a worker started by TestCase::spawn(). More...
#include <test_case.h>
Public Member Functions | |
| Worker (Worker &&) noexcept=default | |
| Move-constructs, transferring ownership of the running worker. | |
| Worker (const Worker &)=delete | |
| Worker & | operator= (const Worker &)=delete |
| T | join () |
| Await the worker and return its result. | |
Handle to a worker started by TestCase::spawn().
Move-only. join() awaits the worker and returns its result, re-raising any exception it threw. The destructor joins if join() was never called.
|
inline |
Await the worker and return its result.
Re-raises any exception thrown on the worker thread. Call at most once, before the test body returns.