# useAsync > Run an async function and track its loading, error, and value state. - Category: Data - Package: `hookli` (install with `npm i hookli`) - Docs: https://hookli.vercel.app/docs/use-async ## Signature ```ts useAsync(asyncFunction: () => Promise, immediate?: boolean): UseAsyncReturn ```