@adobe/ecs - v0.2.1
    Preparing search index...
    • Declares a finalizer for each entity that stops matching its components, which applies in every world, and returns it. It runs on the thread its object components and resources live on: on another than the world's, after the sync point, issuing no commands. Throws if it names a component or resource that isn't registered as one, lists a resource in both read and write, writes a reduced one, uses object values of different threads, writes resources or looks up entities on another thread than the world's, or is ordered with a finalizer on another thread, in a cycle or with a resource conflict.

      Type Parameters

      • const D extends Declaration

      Parameters

      • declared: D & Inferred & { components: { has?: undefined; read?: undefined } } & OneThread<
            ThreadsOf<D>,
            ThreadedBy<D>,
        > & Remote<D>
      • body: (row: Row<D>, context: Context<D>) => void

      Returns Finalizer