Contents

VNRequestCompletionHandler

A type alias to encapsulate the syntax for the completion handler the system calls after the request finishes processing.

Declaration

typealias VNRequestCompletionHandler = (VNRequest, (any Error)?) -> Void

Discussion

Vision executes the completion handler on the same queue that it executes the request; however, this queue differs from the one where you called perform(_:).

See Also

Configuring a Request