Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 364 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 364 Bytes

@plantae/plugin-timeout

Timeout plugin for Plantae.

Installation

# npm
npm install @plantae/plugin-timeout

# yarn
yarn add @plantae/plugin-timeout

Usage

import timeoutPlugin from "@plantae/plugin-timeout";

const fetchWithTimeout = createFetch({
  client: fetch,
  plugins: [timeoutPlugin(5000)], // timeout after 5 seconds
});