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 log should be inside a disposable #69

Closed jackfirth closed 7 years ago

jackfirth commented 7 years ago

The event log added to a disposable with disposable/event-log is itself a resource, and it means the wrapped disposable behaves somewhat unexpectedly with a reference to external memory not contained in a disposable. Making disposable/event-log return a disposable producing both the wrapped disposable and a log would better cooperate with testing libraries that add abstractions on top of disposables.