Skip to content

AsyncAdapterOptions

Defined in: packages/core/src/adapters/async.ts:14

Configuration options for the AsyncAdapter.

optional concurrency: ConcurrencyStrategy

Defined in: packages/core/src/adapters/async.ts:41

The concurrency strategy to use. Defaults to 'abort'.


read: () => Promise<void | AdapterEnvelope<unknown> | null | undefined>

Defined in: packages/core/src/adapters/async.ts:21

Function to retrieve data from the remote source.

Promise<void | AdapterEnvelope<unknown> | null | undefined>

Should return AdapterEnvelope if the backend responds with data. When the backend has no config stored for the user, return null or undefined.


write: (nextConfig, lastCommittedConfig, metadata, signal?) => Promise<void | AdapterEnvelope<unknown> | null | undefined>

Defined in: packages/core/src/adapters/async.ts:33

Function to persist data to the remote source.

unknown

The new configuration object.

unknown

The last known confirmed configuration from the server (useful for PATCH/Diffing).

ManagerMetadata

The versioning metadata.

AbortSignal

An AbortSignal (if concurrency is set to ‘abort’).

Promise<void | AdapterEnvelope<unknown> | null | undefined>

Should return AdapterEnvelope if the backend responds with updated data. Otherwise, may return null or undefined.