Contents

sync(execute:)

Submits a work item for execution on the current queue and returns after that block finishes executing.

Declaration

func sync(execute workItem: DispatchWorkItem)

Parameters

  • workItem:

    The dispatch work item containing the task to execute. For information on how to create this work item, see Dispatchworkitem.

See Also

Executing Tasks Synchronously