Skip to main content

recording

Function recording 

Source
pub fn recording<T>(f: impl FnOnce() -> T) -> (T, BTreeSet<String>)
Expand description

What f gives, and the paths Bundle::bytes found while it ran on this thread (also through Bundle::file and the formats that read a bundle). Unlike watch, it is scoped, and more than one tool can use it at once. Nested, the outer call sees the inner one’s reads too. Bundle::has records nothing.