PcaptureRejectionSymbol
Bun

property

worker_threads.Worker.captureRejectionSymbol

readonly static captureRejectionSymbol: typeof captureRejectionSymbol

Value: Symbol.for('nodejs.rejection')

See how to write a custom rejection handler.