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 transients #92

Closed jackfirth closed 7 years ago

jackfirth commented 7 years ago

A transient value is an allocated value of a disposable that may "come and go". More specifically:

The use case in mind is connections, particularly in protocols like HTTP/1.1 where a server's response may dictate that a connection must be closed. By wrapping a connection in a transient, connections may be both pooled and explicitly disposed and reallocated.

Obsoletes #17