Skip to main content

Function Timeout

Problem 79intermediate25 mins

Function Timeout

Created on: 8 Sep 2025, 7:00 PM

Time Elapsed
00:00
Problem Description

Implement a function that times out if execution takes too long.

Requirements

  • •Set timeout
  • •Cancel on timeout
  • •Error on timeout
  • •Configurable timeout
  • •Handle async
  • •Return promise

Tags

JavaScriptFunctionsTimeoutError Handling
Code Editor

Loading editor...