InternalTaskRunner
public protocol InternalTaskRunner : AnyObject, Cancellable, Sendable
Note
Sendable because the whole point of a runner is that run() is driven from a
detached Task, so conformers already cross concurrency domains. Requiring it here is
what lets InternalTask+AsyncSequence start that task without sending a non-Sendable
self.
-
Declaration
Swift
associatedtype Request : AmplifyOperationRequest -
Declaration
Swift
var request: Request { get } -
run()AsynchronousRun task
Declaration
Swift
func run() async throws
View on GitHub