Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fmt: add
reload::Handle::with_current
(#91)
## Motivation In some cases, when filter reloading is in use, it can be valuable to inspect the current value of a filter without reloading it. For example, this could be used to format the current state, or call filter-specific methods on it. ## Solution This branch adds a new `Handle::with_current` method. This method invokes a closure with a borrowed reference to the filter's current state and returns the result. This does not require acquiring a write lock. Signed-off-by: Eliza Weisman <[email protected]>
- Loading branch information