unbindStore

fun unbindStore(store: Any?)(source)

Remove 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);

Since

v19.9.0

Return

true if the store was found, false otherwise.

Parameters

store

The store to unbind from the channel.