Receive

class Receive<T>(key: SubscriptionKey<T>, result: Result<T>, revision: String, marker: Marker = Marker.None) : SubscriptionCommand<T>

Handles the result received from the subscription source.

Parameters

key

Instance of a class implementing SubscriptionKey.

result

The received result.

revision

The revision of the subscription state.

marker

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

Constructors

Link copied to clipboard
constructor(key: SubscriptionKey<T>, result: Result<T>, revision: String, marker: Marker = Marker.None)

Functions

Link copied to clipboard
open suspend override fun handle(ctx: SubscriptionCommand.Context<T>)

Handles the subscription.