Function: attachTauriToEngine()

August 8, 2026 ยท View on GitHub

@plures/praxis


@plures/praxis / index / attachTauriToEngine

Function: attachTauriToEngine()

attachTauriToEngine<TContext>(engine, adapter, options?): () => void

Defined in: src/integrations/tauri.ts:560

Attach Tauri bridge to a Praxis engine for auto-save

Type Parameters

TContext

TContext

Parameters

engine

LogicEngine<TContext>

adapter

TauriPraxisAdapter<TContext>

options?

autoSave?

boolean

saveInterval?

number

Returns

() => void

Example

import { attachTauriToEngine } from '@plures/praxis/integrations/tauri';

const cleanup = attachTauriToEngine(engine, adapter, {
  autoSave: true,
  saveInterval: 5000,
});

// Later, cleanup subscriptions
cleanup();