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

Closing values #112

Open jackfirth opened 6 years ago

jackfirth commented 6 years ago

A transient value gives clients a way to "refresh" the allocated value. A closing value would be similar but weaker, giving clients only the ability to eagerly close the allocated value. This, combined with #111, would be useful for an event that controls allocation while giving synchronizing clients control over deallocation.