@chickenjdk/byteutils
    Preparing search index...

    Function wrapForPromise

    • Wrap a value for the completion of a promise

      Type Parameters

      • awaiter extends unknown

        The value to await (may not actually be a promise, if not returns value with no wrapping)

      • value extends unknown

        The value to return

      Parameters

      Returns awaiter extends PromiseLike<unknown> ? Promise<value> : value