cancel(id:)

An effect that will cancel any currently in-flight effect with the given identifier.

Cancellation.swift:105
static func cancel(id: some Hashable & Sendable) -> Effect<Action>

Parameters

id

An effect identifier.

Returns

A new effect that will cancel any currently in-flight effect with the given identifier.