MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / defer

Function defer

src/test/helpers.ts:632–634  ·  view source on GitHub ↗
(description: string, callback: (result?: "failed" | "passed" | "pending") => Promise<any> | any)

Source from the content-addressed store, hash-verified

630 logger.info(`Done running deferred functions!`);
631});
632export function defer(description: string, callback: (result?: "failed" | "passed" | "pending") => Promise<any> | any): void {
633 deferredItems.push({ description: `${description} (${currentTestName})`, callback });
634}
635export function deferUntilLast(description: string, callback: (result?: "failed" | "passed" | "pending") => Promise<any> | any): void {
636 deferredToLastItems.push({ description: `${description} (${currentTestName})`, callback });
637}

Callers 15

createDebugClientFunction · 0.90
startFakeDebugSessionFunction · 0.90
spawnDartProcessPausedFunction · 0.90
spawnFlutterProcessFunction · 0.90
dart_cli.test.tsFile · 0.90
fs.test.tsFile · 0.90
helpers.test.tsFile · 0.90
renames.test.tsFile · 0.90
dart_tasks.test.tsFile · 0.90

Calls

no outgoing calls

Tested by 3

createTestEnvironmentFunction · 0.72
createAutoLaunchFunction · 0.72
createSdkRootFunction · 0.72