Connect

class Connect<T, S>(key: InfiniteQueryKey<T, S>, revision: String? = null, marker: Marker = Marker.None, callback: QueryCallback<QueryChunks<T, S>>? = null) : InfiniteQueryCommand<T, S>

Performs data fetching and validation based on the current data state.

This command is invoked via InfiniteQueryRef when a new mount point (subscriber) is added.

Parameters

key

Instance of a class implementing InfiniteQueryKey.

revision

The revision of the data to be fetched.

marker

The marker with additional information based on the caller of a query.

callback

The callback to receive the result of the query.

Constructors

Link copied to clipboard
constructor(key: InfiniteQueryKey<T, S>, revision: String? = null, marker: Marker = Marker.None, callback: QueryCallback<QueryChunks<T, S>>? = null)

Functions

Link copied to clipboard
open suspend override fun handle(ctx: QueryCommand.Context<QueryChunks<T, S>>)

Handles the query.