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 pool refreshing events #95

Open jackfirth opened 7 years ago

jackfirth commented 7 years ago

When a pool lease is disposed, a function could take the value and return a refresh event that does two things:

A single function of type (-> any/c (evt/c boolean?)) applied to the leased value can handle both use cases.

Obsoletes #70