run(_:queue:)
Creates an action that executes a block on a specific dispatch queue.
Declaration
class func run(_ block: @escaping () -> Void, queue: dispatch_queue_t) -> SKActionParameters
- block:
The block to run.
- queue:
The queue to perform the action on.
Return Value
A new action object.
Discussion
When the action executes, the block is called. This action takes place instantaneously.
This action is not reversible; the reverse action executes the same block.