Class
SnapshotWaiter
public final class SnapshotWaiter
A snapshot timing manager to wait and fulfillment for the scenario content to be rendered.
Initializers
init()
public init()
Initialize a new waiter.
Properties
isWaiting
var isWaiting: Bool
Specifies whether currently waiting.
Methods
wait()
public func wait()
Wait for the snapshot for 10 seconds from now.
wait(until:)
public func wait(until timeout: DispatchTime)
Wait for the snapshot until the specified timeout period.
Parameters
Name | Type | Description |
---|---|---|
timeout | DispatchTime |
A timeout period for waiting the snapshot. |
fulfill()
public func fulfill()
Complete waiting for the snapshot.