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