CancelledNotification

@Serializable
@SerialName(value = "notifications/cancelled")
data class CancelledNotification(val params: CancelledNotification.CancelledParams) : JsonRpcNotification

This notification is sent by either side to indicate that it is cancelling a previously-issued request.

The request SHOULD still be in-flight, but due to communication latency, it is possible that this notification may arrive after the request has completed. This indicates that the result will be unused, so any associated processing SHOULD stop.

A client MUST NOT attempt to cancel its initialize request.

Constructors

Link copied to clipboard

Types

Link copied to clipboard
@Serializable
data class CancelledParams(val requestId: String, val reason: String? = null, val _meta: Map<String, JsonElement>? = null) : NotificationParams

Properties

Link copied to clipboard
Link copied to clipboard

Functions