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

Event acquirer? #111

Open jackfirth opened 6 years ago

jackfirth commented 6 years ago

Building off #104 it could be nice to have an "event acquirer", which is a synchronizable event that produces an allocated value when synchronized. Deallocation of the event itself deallocates everything allocated with it.