uvloop icon indicating copy to clipboard operation
uvloop copied to clipboard

use a stack of self._fds_to_close to prevent double closes

Open graingert opened this issue 3 years ago • 1 comments

and make tests easier to write because the close order is deterministic and in the order that opens happen in

this should also be a bit faster because list.append is faster than set.add and we skip a call to os_close(-1) and catching an OSError exception

graingert avatar Jul 19 '22 18:07 graingert

@fantix can I get a review on this please?

graingert avatar Jul 29 '22 11:07 graingert

@fantix thanks for the review!

graingert avatar Aug 24 '22 15:08 graingert