@jiminp/tooltool
    Preparing search index...

    Function isAsyncIterable

    • Type guard: checks if an iterable is async.

      Type Parameters

      • T

        Value type.

      • TReturn

        Return type.

      • TNext

        Type passed to next().

      Parameters

      Returns it is AsyncIterable<T, TReturn, TNext>

      true if async iterable.

      isAsyncIterable(function* () { yield 1; }());        // false
      isAsyncIterable(async function* () { yield 1; }()); // true