Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/channel/custom/utils/utils.ts>Cleaner

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
interface Cleaner
import { type Cleaner } from "https://deno.land/x/rimbu@1.2.1/channel/custom/utils/utils.ts";

Utility that can be used to clean up resources after usage.

Methods

add(...actions: Array<(() => void) | undefined>): void

Adds the given actions to the queue for clean-up.

cleanup(): void

Executes the added clean-up functions and clears the Cleaner.