IOResourceManager
IOResourceManager(
source ,
)
A class for managing opening/closing files.
One manager serves one IO operation. Creating and closing its resources is synchronized, so concurrent callers share a single handle per type; a handle it hands back is not itself safe to use from several threads at once.
Methods
| Name | Description |
|---|---|
| clear_cache | Close and forget any cached resources so they can be reopened fresh. |
| close_all | Close any open file handles. |
| get_resource | Get the requested resource, opening each handle exactly once. |