mirror of
https://github.com/Nanaloveyuki/BitLogger.git
synced 2026-09-07 18:03:47 +00:00
21 lines
463 B
Markdown
21 lines
463 B
Markdown
---
|
|
name: history-sink-snapshot
|
|
group: api
|
|
category: sink
|
|
update-time: 20260811
|
|
description: Copy the retained records from a HistorySink in chronological order.
|
|
key-word:
|
|
- sink
|
|
- history
|
|
- snapshot
|
|
---
|
|
|
|
## History-sink-snapshot
|
|
|
|
```moonbit
|
|
pub fn HistorySink::snapshot(self : HistorySink) -> Array[Record]
|
|
```
|
|
|
|
Returns copied records ordered from oldest to newest. Later writes and mutation
|
|
of the returned array do not change the retained history.
|