Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/proc/tests/deps/asynciter.ts>first

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
function first
Re-export
import { first } from "https://deno.land/x/proc@0.20.14/tests/deps/asynciter.ts";

Return the first item of the sequence.

Parameters

iterable: AsyncIterable<T>

Returns

Promise<T | null>

The first item of the sequence.