MCPcopy Index your code
hub / github.com/zuiidea/antd-admin / withDelay

Function withDelay

apps/basic/src/mocks/createHandler.ts:21–23  ·  view source on GitHub ↗
(ms: number = 200)

Source from the content-addressed store, hash-verified

19 * Automatically handles delay, error responses, and data wrapping
20 */
21export async function withDelay(ms: number = 200): Promise<void> {
22 await mswDelay(ms);
23}
24
25/**
26 * Create a success response

Callers 3

admin.tsFile · 0.90
user.tsFile · 0.90
auth.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected