struct BatchableCommand<ResponseType>
extension BatchableCommand : Sendable
Represents a command that can be batched with other commands. It captures the request info and a closure to transform the response. ResponseType can be any type, including Void. It is typically a subtype of CommandResponse.
-
Declaration
Swift
let requestInfo: BatchCommandRequestInfo
-
The parameters are 1-to-1 match to the properties of
BatchCommandRequestInfo
.Declaration
Swift
init(objectID: String, commandID: ScopedCommandID, request: (any CommandRequest)?, useTimedInteraction: Bool)