Timeout With Promise.race

NodeJS Hard 4 views
Back to Questions

Problem Description

Add a timeout wrapper for an async task using Promise.race.

Input Format

No input.

Output Format

Print TIMEOUT or DONE.

Constraints

Use a task that never resolves.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next