Recyclable

public protocol Recyclable: class

Defines a protocol for objects that can be recycled for re-use.

  • Reset the object to a fresh state, releasing and recycling any resources associated with this object.

    Note

    This should not be called directly by clients. To recycle the object, it should be done via objectPool.recycleObject(object).

    Declaration

    Swift

    func prepareForReuse()