mirror of
https://github.com/Nanaloveyuki/BitLogger.git
synced 2026-09-07 09:54:07 +00:00
20 lines
375 B
Markdown
20 lines
375 B
Markdown
---
|
|
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()`.
|