Copyable worker token. Dispatch load() through the existing background executor. The library owns no worker/runtime. Copies share cancellation and one reservation; final release returns capacity after the provider, workspace, results and queued owners have stopped using it.
More...
#include <window_source.hpp>
|
|
struct | detail::WindowRequestAccess |
|
template<class> |
| class | WindowConsumer |
template<class T>
class portals::WindowRequest< T >
Copyable worker token. Dispatch load() through the existing background executor. The library owns no worker/runtime. Copies share cancellation and one reservation; final release returns capacity after the provider, workspace, results and queued owners have stopped using it.
- Template Parameters
-
| T | Immutable worker-destructible row value. |
◆ command()
- Returns
- Immutable command; a default token has a zero command.
◆ complete()
- Parameters
-
| reply | Owning load result; retry the same result after WOULD_BLOCK/NO_MEMORY. |
- Returns
- Existing queue admission, never UI application; one accepted publication per generation.
◆ load()
- Parameters
-
| external | Optional host cancellation, combined with this request's cancellation. |
- Returns
- Owning reply/error. UI invocation is rejected; each token generation loads once.
◆ stopRequested()
- Returns
- True after cancellation/source closure or for an empty token.
The documentation for this class was generated from the following file: