GetSizeAsync Method
GetSizeAsync()
Returns number of items in the ringbuffer.
Declaration
Task<long> GetSizeAsync()
Returns
Task<Int64> | 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.