Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.1.0/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.