The action in the next milliseconds remains as a historical segment
```ts
/**
* How many milliseconds the action remains as a historical segment
*@param time milliseconds
*/
hold(time?: number): void;
```
### `releaseHold`
Reset hold
```ts
/**
* Reset hold
*/
releaseHold(): void;
```
### `onFilter`
Monitor and filter ops stored in history
```ts
/**
* Monitoring and filtering are stored in the history stack
*@param filter true to filter and exclude, false to record in the history stack
*/
onFilter(filter: (op: Op) => boolean): void
```
### `onSelf`
Monitor the current change ops and decide whether to write to the history record
```ts
/**
*
*@param collect method undefined The default delay save, true save immediately, false immediately discard. Promise<boolean> blocks all subsequent ops until it returns false or true