ReleasePool

public class ReleasePool

ReleasePool is an object that retains another objects

  • Designated initializer of ReleasePool

    Declaration

    Swift

    public init()
  • Inserts object to retain

    Declaration

    Swift

    public func insert(_ releasable: Releasable)
  • Adds block to call on draining ReleasePool

    Declaration

    Swift

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

    Parameters

    block

    to call

  • Causes release of all retained objects

    Declaration

    Swift

    public func drain()