Copyable producer endpoint owning no UI state, callbacks or coroutine frame. T and its deleter must support transitively immutable shared ownership on any releasing thread. One accepted completion ends admission; rejected publication leaves retry possible. The producer must retain the reply and result on WOULD_BLOCK and retry when capacity returns. Synchronous completion queues a value; it never resumes a coroutine inline.
More...
#include <async.hpp>
|
|
template<class> |
| class | AsyncReceive |
template<class T>
class portals::AsyncReply< T >
Copyable producer endpoint owning no UI state, callbacks or coroutine frame. T and its deleter must support transitively immutable shared ownership on any releasing thread. One accepted completion ends admission; rejected publication leaves retry possible. The producer must retain the reply and result on WOULD_BLOCK and retry when capacity returns. Synchronous completion queues a value; it never resumes a coroutine inline.
- Template Parameters
-
| T | Immutable owning result type; raw widget/view references are unsuitable. |
◆ complete()
- Parameters
-
| value | Non-null immutable owner; caller may retain another owner for retry. |
- Returns
- QUEUED on admission, CLOSED after cancellation/delivery, WOULD_BLOCK for a full queue or duplicate accepted completion, INVALID_ARGUMENT for null, or NO_MEMORY.
◆ fail()
- Parameters
-
| error | Typed provider failure delivered as the await result. |
- Returns
- Same queue/admission result as complete(); failed admission remains retryable.
The documentation for this class was generated from the following file: