HH\Lib\Experimental\Debug\tap_to_async

Facebook Engineer?

This function is available as HH\Lib\Experimental\Debug\gen_tap_to() in Facebook's www repository.

Print a human-readable representation of a value to the request error stream, and return it

namespace HH\Lib\Experimental\Debug;

function tap_to_async<T>(
  T $value,
  \HH\Lib\Experimental\IO\WriteHandle $handle,
): Awaitable<T>;

Parameters

  • T $value
  • \HH\Lib\Experimental\IO\WriteHandle $handle

Returns