NPRPC docs

variable currentCallIsCancelled

Swift

var currentCallIsCancelled: Bool { get }

Inside a servant method: whether the client cancelled this call or went away. A long-running method can check this and stop early. It only ever turns true on a POA created with a dispatch: other than .inlineOnTransportThread.

nprpc_swift/Sources/NPRPC/Servant.swift:9