DispatchQueue
public extension DispatchQueue
Extension that wraps actions into DispatchQueue
and delays it for the provided time interval.
Can be used to test action implementation or the configuration issues.
-
Wraps
Action
in toDispatchQueue
Parameters:
- action:
Action
instance - timeInterval:
DispatchTimeInterval
instance
Declaration
Swift
static func delay<A>(_ action: A, for timeInterval: DispatchTimeInterval = .milliseconds(300)) -> DispatchQueueWrappedAction<A> where A : Action
- action:
-
Wraps
ContainerAction
in toDispatchQueue
Parameters:
- action:
ContainerAction
instance - timeInterval:
DispatchTimeInterval
instance
Declaration
Swift
static func delay<A>(_ action: A, for timeInterval: DispatchTimeInterval = .milliseconds(300)) -> DispatchQueueWrappedContainerAction<A> where A : ContainerAction
- action: