|
Uni20
Asynchronous tensor and runtime library.
|
Awaiter returning borrowed read access or throwing task_cancelled.
More...
#include <buffers.hpp>
Public Types | |
| using | value_type = T |
Public Member Functions | |
| bool | await_ready () const noexcept |
| Check if the value is already ready to be read. | |
| T const & | await_resume () |
| Resume execution and return a borrowed reference to the stored value. | |
| void | await_suspend (BasicTask &&t) noexcept |
| Suspend this coroutine and enqueue for resumption. | |
| ReadOrCancelAwaiter (ReadOrCancelAwaiter &&)=default | |
| Move constructor. | |
Awaiter returning borrowed read access or throwing task_cancelled.
| T | Stored value type. |
| using uni20::async::ReadOrCancelAwaiter< T const & >::value_type = T |
|
default |
Move constructor.
|
inlinenoexcept |
Check if the value is already ready to be read.
|
inline |
Resume execution and return a borrowed reference to the stored value.
| task_cancelled | when the read source has no value. |
| Any | exception stored by a failed writer. |
|
inlinenoexcept |
Suspend this coroutine and enqueue for resumption.
| t | Coroutine task to enqueue. |