Kingfisher Documentation

Enumeration Callback​Queue

public enum CallbackQueue  

Represents callback queue behaviors when an calling of closure be dispatched.

  • asyncMain: Dispatch the calling to DispatchQueue.main with an async behavior.

  • currentMainOrAsync: Dispatch the calling to DispatchQueue.main with an async behavior if current queue is not .main. Otherwise, call the closure immediately in current main queue.

  • untouch: Do not change the calling queue for closure.

  • dispatch: Dispatches to a specified DispatchQueue.

Enumeration Cases

main​Async

case mainAsync

Dispatch the calling to DispatchQueue.main with an async behavior.

main​Current​OrAsync

case mainCurrentOrAsync

Dispatch the calling to DispatchQueue.main with an async behavior if current queue is not .main. Otherwise, call the closure immediately in current main queue.

untouch

case untouch

Do not change the calling queue for closure.

dispatch

case dispatch(DispatchQueue) 

Dispatches to a specified DispatchQueue.

Methods

execute(_:​)

public func execute(_ block: @escaping () -> Void)