close(_:context:replyHandler:)
Closes an item and releases associated cache resources.
Declaration
func close(_ item: FSItem, context: FSContext, replyHandler reply: @escaping @Sendable () -> Void)func close(_ item: FSItem, context: FSContext) asyncParameters
- item:
The item to close.
- context:
An object that enables context-aware file system decisions throughout the operation.
- reply:
A block or closure to call when the close operation completes.
Discussion
FSKit calls this method when fully closing a file, and after the kernel finalizes all caching for the item.
Your module receives this call once per item when all references are released and the kernel has completed its cache management. The module performs any necessary cleanup operations for the item.