Type Alias

VNRequestCompletionHandler

A type alias to encapsulate the syntax for the completion handler block that's invoked after the request has finished processing.

Declaration

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

Discussion

The completion handler is executed on the same dispatch queue as the request being executed.