Skip to main content
Channel.prototype.unbindStore - node__diagnostics_channel.d.ts - Node documentation
method Channel.prototype.unbindStore
Unstable

Usage in Deno

```typescript import { Channel } from "node:node__diagnostics_channel.d.ts"; ```
Channel.prototype.unbindStore(store: any): void
Remove a message handler previously registered to this channel with `channel.bindStore(store)`. ```js 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

store: any
The store to unbind from the channel.

Return Type

void
`true` if the store was found, `false` otherwise.