HH\Coeffects\backdoor_async

Creates an unsafe way to call a function by providing defaults coeffects

namespace HH\Coeffects;

function backdoor_async<Tout>(
  (function(): Awaitable<Tout>) $fn,
): Awaitable<Tout>;

EXTREMELY UNSAFE. USE WITH CAUTION.

Parameters

  • (function(): Awaitable<Tout>) $fn

Returns