instanceManagerFinalizerDelegateTemplate function
Template for delegate with callback when an object is deallocated.
Implementation
String instanceManagerFinalizerDelegateTemplate(SwiftOptions options) => '''
/// Handles the callback when an object is deallocated.
protocol ${instanceManagerFinalizerDelegateName(options)}: AnyObject {
/// Invoked when the strong reference of an object is deallocated in an `InstanceManager`.
func onDeinit(identifier: Int64)
}
''';