This is available as Unix\connect_async
in the www repository.
Asynchronously connect to the specified unix socket
namespace HH\Lib\Unix;
function connect_async(
string $path,
ConnectOptions $opts = dict [
],
): Awaitable<CloseableSocket>;
string $path
ConnectOptions $opts = dict [ ]