Lifetime

public protocol Lifetime: class

Defines view controller cache lifetime.

  • This method will be called by module before navigation.

    Declaration

    Swift

    func die(_ kill: @escaping () -> Void)

    Parameters

    kill

    Call this block to invalidate cache.