MCPcopy Create free account
hub / github.com/Noumena-Network/code / sleep

Function sleep

src/utils/combinedAbortSignal.test.ts:4–6  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

2import { createCombinedAbortSignal } from './combinedAbortSignal.js'
3
4function sleep(ms: number): Promise<void> {
5 return new Promise(resolve => setTimeout(resolve, ms))
6}
7
8describe('createCombinedAbortSignal', () => {
9 it('starts aborted when either source signal is already aborted', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected