ecspresso
    Preparing search index...

    Type Alias PluginCleanup

    PluginCleanup:
        | ((cleanup: CleanupControl) => void)
        | ((cleanup: CleanupControl) => Promise<void>)

    Registrar passed as the second argument to a plugin's install function. Each registered disposer runs (in reverse order) when the plugin is uninstalled via world.uninstallPlugin(id) or when world.dispose() is called. Disposers may return promises; world disposal awaits them. The supplied cleanup control can request world disposal without making the callback wait on the external teardown barrier that includes that callback.