method NotificationService.prototype.sendSettled
Since 0.1.0
NotificationService.prototype.sendSettled(notification: NotificationMessage): Promise<readonly ChannelSendResult[]>

Dispatches a notification on every requested channel and reports the settled outcome of each, without throwing.

Unlike INotifier.send, this never rejects: a failed channel is reported as { channel, ok: false, error } so a caller (typically one behind a retrying queue) can retry the failing channel alone instead of re-sending the whole notification. One result per requested channel, in request order.

Parameters

notification: NotificationMessage

The notification to send

Return Type

Promise<readonly ChannelSendResult[]>

One non-throwing result per requested channel, in request order

Usage

import { NotificationService } from "notification-plugin/src/index.ts";