method Channel.prototype.unbindStore
unstable
Jump to headingChannel.prototype.unbindStore(store: any): voidRemove a message handler previously registered to this channel with channel.bindStore(store).
import diagnostics_channel from 'node:diagnostics_channel';
import { AsyncLocalStorage } from 'node:async_hooks';
const store = new AsyncLocalStorage();
const channel = diagnostics_channel.channel('my-channel');
channel.bindStore(store);
channel.unbindStore(store);
Parameters Jump to heading
Jump to headingstore: anyThe store to unbind from the channel.
Return Type Jump to heading
voidtrue if the store was found, false otherwise.