Created a class to be used as a signpost ref instead of NSObject
MODIFY
swift/Workflow/Sources/SubtreeManager.swift
swift/Workflow/Sources/SubtreeManager.swift
@@ -204,7 +204,7 @@ extension WorkflowNode.SubtreeManager {
func makeSink<Action>(of actionType: Action.Type) -> Sink<Action> where Action: WorkflowAction, WorkflowType == Action.WorkflowType {
let reusableSink = sinkStore.findOrCreate(actionType: Action.self)
- let signpostRef = NSObject()
+ let signpostRef = SignpostRef()
let sink = Sink<Action> { action in
WorkflowLogger.logSinkEvent(ref: signpostRef, action: action)
@@ -411,7 +411,7 @@ extension WorkflowNode.SubtreeManager {
self.outputMap = outputMap
super.init(eventPipe: eventPipe)
- let signpostRef = NSObject()
+ let signpostRef = SignpostRef()
WorkflowLogger.logWorkerStartedRunning(ref: signpostRef, workerType: W.self)
signalProducer

MODIFY
swift/Workflow/Sources/WorkflowLogger.swift
swift/Workflow/Sources/WorkflowLogger.swift
@@ -23,6 +23,11 @@ fileprivate extension OSLog {
// MARK: -
+/// Simple class that can be used to create signpost IDs based on an object pointer.
+final class SignpostRef {
+ init() {}
+}
+
final class WorkflowLogger {
// MARK: Workflows

Created a class to be used as a signpost ref instead of NSObject