unloadResource(resource:options:replyHandler:)
Requests that the file system unload the specified resource.
Declaration
func unloadResource(resource: FSResource, options: FSTaskOptions, replyHandler reply: @escaping @Sendable ((any Error)?) -> Void)func unloadResource(resource: FSResource, options: FSTaskOptions) async throwsParameters
- resource:
An Fsresource to unload.
- options:
An Fstaskoptions object specifying options to apply when unloading the resource.
- reply:
A block or closure that your implementation invokes when it finishes unloading or encounters an error. If unloading fails, pass an error as the parameter to describe the problem. Otherwise, pass
nil.