Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

A better way to work with processes in Deno.
Very Popular
Go to Latest
function first
Re-export
import { first } from "https://deno.land/x/proc@0.20.34/src/deps/asynciter.ts";

Return the first item of the sequence.

Parameters

iterable: AsyncIterable<T>

Returns

Promise<T | null>

The first item of the sequence.