hhvm / hsl-experimental

Experimental features for the Hack Standard Library
MIT License
23 stars 10 forks source link

Add CloseableHandle::closeWhenDisposed() #159

Closed fredemmott closed 4 years ago

fredemmott commented 4 years ago

If not used and close() is not called, handles will be closed at some undefined later time, e.g. end of request or when garabage collected.

No current implementation is refcount-based.

facebook-github-bot commented 4 years ago

@fredemmott merged this pull request in hhvm/hsl-experimental@35a7464627d65504d90a6859e7dbf3eaf7880375.