mirror of
https://github.com/Nanaloveyuki/BitLogger.git
synced 2026-09-07 09:54:07 +00:00
✨ add bounded history sink (#1)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
---
|
||||
name: history-sink-count
|
||||
group: api
|
||||
category: sink
|
||||
update-time: 20260811
|
||||
description: Read the number of records currently retained by a HistorySink.
|
||||
key-word:
|
||||
- sink
|
||||
- history
|
||||
- count
|
||||
---
|
||||
|
||||
## History-sink-count
|
||||
|
||||
```moonbit
|
||||
pub fn HistorySink::count(self : HistorySink) -> Int
|
||||
```
|
||||
|
||||
Returns the current retained-record count, which never exceeds `capacity()`.
|
||||
Reference in New Issue
Block a user