diff options
author | Peter Zhu <[email protected]> | 2024-08-20 13:28:11 -0400 |
---|---|---|
committer | git <[email protected]> | 2024-08-20 18:07:42 +0000 |
commit | a68331e7036d7ab433778bf65eb854aabd5009c4 (patch) | |
tree | e64a0d781c4a332631a49f9fa6066e088b1c92a3 /spec/mspec/lib | |
parent | 41b427a2648ed2e049952450c698be917e0bb125 (diff) |
[ruby/tempfile] Add FinalizerManager to manage finalizers
As @jeremyevans pointed out for commit eb2d8b1:
> Each Tempfile instance has a separate File instance and file descriptor:
>
> t = Tempfile.new
> t.to_i # => 6
> t.dup.to_i => 7
FinalizerManager will keep track of the open File objects for the
particular file and will only unlink the file when all of the File objects
have been closed.
https://github.com/ruby/tempfile/commit/753ab16642
Diffstat (limited to 'spec/mspec/lib')
0 files changed, 0 insertions, 0 deletions