CLASS
Lifetime
¶
public final class Lifetime
Represents the lifetime of an object.
Once ended, the onEnded
closure is called.
Properties¶
hasEnded
¶
public private(set) var hasEnded: Bool = false
Methods¶
onEnded(_:)
¶
public func onEnded(_ action: @escaping () -> Void)
Hook to clean-up after end of lifetime
.
deinit
¶
deinit