MCPcopy
hub / github.com/facebook/react / sleep

Function sleep

fixtures/flight/src/actions.js:5–7  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

3import {setServerState} from './ServerState.js';
4
5async function sleep(ms) {
6 return new Promise(resolve => setTimeout(resolve, ms));
7}
8
9export async function like() {
10 // Test loading state

Callers 2

likeFunction · 0.70
incrementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected