jackfirth / racket-disposable

An experimental Racket library providing an abstraction for values associated with external resources that allows automatic resource pooling, per-thread virtual construction, and monadic composition
Apache License 2.0
7 stars 0 forks source link

Add idle event option to disposable pools #16

Open jackfirth opened 7 years ago

jackfirth commented 7 years ago

When returning leased values to a pool, disposable-pool should provide a way to specify that the idle value should be deallocated if not used before some event occurs. This can be used to keep idle values alive only for a short timeout period, which enables the style of reuse that the http package employs for connections.