HH\Lib\IO\CloseableHandle
Requires the Hack Standard Library - Experimental Additions to be installed.
Facebook Engineer?
This function is available as IO\CloseableHandle()
in Facebook's www repository.
A non-disposable handle that is explicitly closeable
Some handles, such as those returned by IO\server_error()
may
be neither disposable nor closeable.
Interface Synopsis
namespace HH\Lib\IO;
interface CloseableHandle implements Handle {...}
Public Methods
->closeAsync(): Awaitable<void>
Complete pending operations then close the handle