Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/poolifier/src/utils.ts>isAsyncFunction

Fast and small web worker pool
Latest
variable isAsyncFunction
import { isAsyncFunction } from "https://deno.land/x/poolifier@v0.3.14/src/utils.ts";

Detects whether the given value is an asynchronous function or not.

type

(fn: unknown) => fn is (...args: unknown[]) => Promise<unknown>