4 ms·Surely File.close will clear the fd on success...by silon42 2y agoSurely File.close will clear the fd on success...tux3 2y agoYou're right, looks like it does!MartinodF 2y agoYeah but is it safe for concurrent use?masklinn 2y agoIf you’re performing concurrent unprotected closing of an fd, you’re deep into the wild lands of nonsense already.lionkor 2y ago(pretty much) only channels are safe for concurrent use in go