API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceSeamlessAdapter

@codexo/exojs / assets / stable

Per-type strategy for seamless deferred asset handles (asset-system v2). A seamless type hands out a stable placeholder handle synchronously from `loader.get(source)`; when the payload arrives, fill transplants it into the handle **in place** so every existing consumer "pops up" without re-wiring. fail swaps in a visible error payload instead. The handle's identity never changes across the whole lifecycle.

0
props
6
methods
0
events
Import
import { SeamlessAdapter } from '@codexo/exojs'

Per-type strategy for seamless deferred asset handles (asset-system v2).

A seamless type hands out a stable placeholder handle synchronously from `loader.get(source)`; when the payload arrives, fill transplants it into the handle **in place** so every existing consumer "pops up" without re-wiring. fail swaps in a visible error payload instead. The handle's identity never changes across the whole lifecycle.

Methods6
begin(handle: T): void
Re-arm a 'failed' handle for a retry ('failed' → 'loading', fresh .loaded).
createPlaceholder(options?: unknown): T
Create a fresh deferred handle, already in the 'loading' state.
evict(handle: T): void
Drop the payload back to a placeholder in place (refcount-0 eviction); identity is kept so a later fill heals every consumer.
fail(handle: T, error: Error): void
Show the error payload on the handle and settle 'failed'.
fill(handle: T, donor: T): void
Transplant the donor's payload into the handle in place and settle 'ready'.
Source