@tempots/dom
Signal.mapAsync property
Maps the values emitted by the signal to a new value asynchronously using the provided function. If the function throws an error, it will be caught and logged. If a recovery function is provided, it will be called with the error and its return value will be used as the mapped value. If no recovery function is provided, the error will be logged as an unhandled promise rejection.
Signature:
readonly mapAsync: (fn: (value: T, options: {
abortSignal: AbortSignal;
}) => Promise, alt: O, recover?: (error: unknown) => O, equals?: (a: O, b: O) => boolean) => Prop;