# timeout **Repository Path**: mirrors_component/timeout ## Basic Information - **Project Name**: timeout - **Description**: Timeout function decorator - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-05-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # timeout Timeout function decorator ## Installation $ component install component/timeout ## Example ```js var timeout = require('timeout'); function something(fn) { setTimeout(function(){ fn(null, 'results'); }, 1000); } something = timeout(something, 500); ``` ## API ### timeout(callback, ms) Apply timeout of `ms` to `callback` and return the new function. ## License MIT