(
message: string,
{ showNotice = true, noticeHandler }: SafeAsyncNoticeOptions
)
| 10 | } |
| 11 | |
| 12 | function 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 |
no outgoing calls
no test coverage detected