![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
Classes | |
| struct | CoAwaiter< void > |
Public Member Functions | |
| InitialSuspend | initial_suspend () |
| FinalAwaiter | final_suspend () noexcept |
| void | unhandled_exception () |
| template<typename T> | |
| CoAwaiter< T > | await_transform (Co< T > &&co) |
| template<typename T> | |
| auto | await_transform (AsyncCallback< T > &&acb) |
| SuspendAwaiter | await_transform (Suspend) |
| ChildEventAwaiter | await_transform (WaitForChildEvent) |
Protected Attributes | |
| std::optional< CoBase > | continuation |
| void * | resultSlot = nullptr |
| void(*) | moveResult (AwaitableFrameBase *from, void *to) noexcept = nullptr |
| Goal * | goal = nullptr |
| bool | alive = true |
Friends | |
| struct | Goal |
|
inline |
Allows awaiting a Suspend. Always suspends.
|
inline |
Allows awaiting child events (output, EOF, timeout).
|
inlinenoexcept |
Called on co_return. Creates FinalAwaiter which either jumps to continuation or suspends goal.
|
inline |
|
inline |
If an exception is thrown inside a coroutine, we re-throw it in the context of the "resumer" of the continuation.
|
protected |
Is set to false when destructed to ensure we don't use a destructed coroutine by accident
|
protected |
The coroutine that called us. It is what we "jump" to once we are done.
|
protected |
The goal that we're a part of. Set either in Co::await_suspend or in constructor of Goal.