InternalTaskHubResult
public protocol InternalTaskHubResult
-
Declaration
Swift
associatedtype Request : AmplifyOperationRequest
-
Declaration
Swift
associatedtype Success
-
Declaration
Swift
associatedtype Failure : AmplifyError
-
Declaration
Swift
typealias ResultListener = (OperationResult) -> Void
-
Subscribe for result
Declaration
Swift
func subscribe(resultListener: @escaping ResultListener) -> UnsubscribeToken
Parameters
resultListener
result listener
Return Value
unsubscribe token
-
unsubscribe(_:
Default implementation) Unsubscribe from Hub channel
Default Implementation
Unsubscribe from Hub channel
Declaration
Swift
func unsubscribe(_ token: UnsubscribeToken)
Parameters
token
unsubscribe token
-
Dispatch result to Hub channel
Declaration
Swift
func dispatch(result: OperationResult)
Parameters
result
result
-
subscribe(resultListener:
Default implementation) Default Implementation
Subscribe to channel on Hub for result
Declaration
Swift
func subscribe(resultListener: @escaping ResultListener) -> UnsubscribeToken
Parameters
resultListener
result listener
Return Value
unsubscribe token
-
dispatch(result:
Default implementation) Default Implementation
Dispatch result to Hub channel
Declaration
Swift
func dispatch(result: TaskResult)
Parameters
result
result