HH\Lib\IO\CloseableHandle::closeWhenDisposed

Meta Engineer?

The containing class is available as IO\CloseableHandle in the www repository.

Close the handle when the returned disposable is disposed

public function closeWhenDisposed(): IDisposable;

Usage: using $handle->closeWhenDisposed();

Returns