( self: Cause.Cause<E> )
| 225 | |
| 226 | /** @internal */ |
| 227 | export const causeAnnotations = <E>( |
| 228 | self: Cause.Cause<E> |
| 229 | ): Context.Context<never> => { |
| 230 | const map = new Map<string, unknown>() |
| 231 | for (const f of self.reasons) { |
| 232 | if (f.annotations.size > 0) { |
| 233 | for (const [key, value] of f.annotations) { |
| 234 | map.set(key, value) |
| 235 | } |
| 236 | } |
| 237 | } |
| 238 | return Context.makeUnsafe(map) |
| 239 | } |
| 240 | |
| 241 | /** @internal */ |
| 242 | export const causeCombine: { |