mirror of
https://github.com/Nanaloveyuki/BitLogger.git
synced 2026-09-08 10:23:51 +00:00
✨ add bounded history sink (#1)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
---
|
||||
name: history-sink-clear
|
||||
group: api
|
||||
category: sink
|
||||
update-time: 20260811
|
||||
description: Clear a HistorySink and reset its eviction counter.
|
||||
key-word:
|
||||
- sink
|
||||
- history
|
||||
- clear
|
||||
---
|
||||
|
||||
## History-sink-clear
|
||||
|
||||
```moonbit
|
||||
pub fn HistorySink::clear(self : HistorySink) -> Unit
|
||||
```
|
||||
|
||||
Clears all retained records and resets `dropped_count()` to zero. It does not
|
||||
close the sink; subsequent records begin a new history session.
|
||||
Reference in New Issue
Block a user