MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / notifyIfRequested

Function notifyIfRequested

src/utils/safeAsync.ts:12–19  ·  view source on GitHub ↗
(
	message: string,
	{ showNotice = true, noticeHandler }: SafeAsyncNoticeOptions
)

Source from the content-addressed store, hash-verified

10}
11
12function notifyIfRequested(
13 message: string,
14 { showNotice = true, noticeHandler }: SafeAsyncNoticeOptions
15): void {
16 if (showNotice) {
17 noticeHandler?.(message);
18 }
19}
20
21/**
22 * Utility for safe async operations with error boundaries

Callers 3

executeMethod · 0.85
executeWithRetryMethod · 0.85
executeWithValidationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected