Unsubscribe from the bounded channel events. This is equivalent to calling [channel.unsubscribe(onMessage)][] on each channel individually.
import { boundedChannel } from 'node:diagnostics_channel';
const wc = boundedChannel('my-operation');
const handlers = {
start(message) {},
end(message) {},
};
wc.subscribe(handlers);
wc.unsubscribe(handlers);