GetSizeAsync Method
GetSizeAsync()
Returns number of items in the ringbuffer.
Declaration
Task<long> GetSizeAsync()
Returns
Task<long> | the size. |
Remarks
Returns number of items in the ringbuffer. If no ttl is set, the size will always be equal to capacity after the head completed the first loop around the ring. This is because no items are getting retired.