|
Uni20
Asynchronous tensor and runtime library.
|
Awaiter returning owning read access or throwing task_cancelled.
More...
#include <buffers.hpp>
Public Types | |
| using | value_type = OwningReadAccessProxy< T > |
Public Member Functions | |
| bool | await_ready () const noexcept |
| Check if the value is already ready to be read. | |
| value_type | await_resume () |
| Resume execution and return an owning read proxy. | |
| void | await_suspend (BasicTask &&t) noexcept |
| Suspend this coroutine and enqueue for resumption. | |
| ReadOrCancelAwaiter (ReadOrCancelAwaiter &&)=default | |
| Move constructor. | |
Awaiter returning owning read access or throwing task_cancelled.
| T | Stored value type. |
| using uni20::async::ReadOrCancelAwaiter< T >::value_type = OwningReadAccessProxy<T> |
|
default |
Move constructor.
|
inlinenoexcept |
Check if the value is already ready to be read.
|
inline |
Resume execution and return an owning read proxy.
| 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. |