InternalTaskHubInProcess
public protocol InternalTaskHubInProcess
-
Declaration
Swift
associatedtype Request : AmplifyOperationRequest
-
Declaration
Swift
associatedtype InProcess : Sendable
-
Declaration
Swift
typealias InProcessListener = (InProcess) -> Void
-
Subscribe for result
Declaration
Swift
func subscribe(inProcessListener: @escaping InProcessListener) -> 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 value to sequence
Declaration
Swift
func dispatch(inProcess: InProcess)
Parameters
inProcess
InProcess value
-
subscribe(inProcessListener:
Default implementation) Default Implementation
Subscribe to channel on Hub for InProcess value
Declaration
Swift
func subscribe(inProcessListener: @escaping InProcessListener) -> UnsubscribeToken
Parameters
resultListener
InProcess listener
Return Value
unsubscribe token
-
dispatch(inProcess:
Default implementation) Default Implementation
Dispatch value to sequence
Declaration
Swift
func dispatch(inProcess: InProcess)
Parameters
inProcess
InProcess value
-
subscribe(inProcessListener:
Default implementation) Default Implementation
Subscribe to channel on Hub for InProcess value
Declaration
Swift
func subscribe(inProcessListener: @escaping InProcessListener) -> UnsubscribeToken
Parameters
resultListener
InProcess listener
Return Value
unsubscribe token
-
subscribe(inProcessListener:
Default implementation) Default Implementation
Subscribe to channel on Hub for InProcess value
Declaration
Swift
func subscribe(inProcessListener: @escaping InProcessListener) -> UnsubscribeToken
Parameters
resultListener
InProcess listener
Return Value
unsubscribe token
-
dispatch(inProcess:
Default implementation) Default Implementation
Dispatch value to sequence
Declaration
Swift
func dispatch(inProcess: InProcess)
Parameters
inProcess
InProcess value
-
subscribe(inProcessListener:
Default implementation) Default Implementation
Subscribe to channel on Hub for InProcess value
Declaration
Swift
func subscribe(inProcessListener: @escaping InProcessListener) -> UnsubscribeToken
Parameters
resultListener
InProcess listener
Return Value
unsubscribe token