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 `disposable/custodian` wrapper #94

Closed jackfirth closed 7 years ago

jackfirth commented 7 years ago

Sometimes a disposable allocates and deallocates both operating system resources that must be cleaned up even in forceful termination and resources that disposables are designed to manage. The former belong under the control of a custodian. A (disposable/custodian <disp> <cust>) function should make it easy to control what custodian a disposable's operating system resources are allocated under.