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