Contracts-TS Documentation
    Preparing search index...

    Interface AutoClose

    Opt-in interface for resources that need cleanup when their lifecycle ends. For example, this is when threads should be stopped or hooks removed.

    Features like life cycle promisors will automatically call this method once if the deliverable implements this method.

    interface AutoClose {
        "[dispose]"(): void;
        close(): void;
    }

    Hierarchy (View Summary)

    Index

    Methods