Class Lease

Class Documentation

class Lease

Declaration: final

A scoped request to collect a channel.

Multiple requests coexist; releasing a handle never erases already captured records or another request. Move/release on any thread with exclusive access to this particular handle. Retained request state survives collector destruction; it does not retain an adapter.

Public Functions

Lease() = default
~Lease()
Lease(Lease &&other) noexcept
Lease &operator=(Lease &&other) noexcept
Lease(const Lease&) = delete
Lease &operator=(const Lease&) = delete
void reset() noexcept