Closed hissssst closed 8 months ago
Yes, I understand this is a need but ensuring correct execution in such cases is much harder. At the moment, I don't intend to focus on this feature, and a pool like poolboy may be a better fit.
@josevalim I can implement the feature if you agree on the design
Closing as there was no progress on this for a year.
Overview
Sometimes
checkout!/4
function does not suit the needs of a program which wants to manually check resource in and out. Functions likecheckin/4
andcheckout/3
can solve this problemExample
You want to take a resource and create a
Stream
which returns the resource back upon completion With functions likecheckin/3
andcheckout/3
this would be possible