Skip to content

Commit

Permalink
log number of outstanding tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoward committed Nov 24, 2024
1 parent a90f3f9 commit 9b2900f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
28 changes: 14 additions & 14 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@
"location" : "https://github.com/PADL/FlutterSwift",
"state" : {
"branch" : "main",
"revision" : "6085417a06af9e9d604091a48ca7957f8875dc7e"
"revision" : "1dc68d463f4066bf8c7f1bc7e42373a2f796a56a"
}
},
{
"identity" : "ioringswift",
"identity" : "flyingfox",
"kind" : "remoteSourceControl",
"location" : "https://github.com/PADL/IORingSwift",
"location" : "https://github.com/swhitty/FlyingFox",
"state" : {
"revision" : "8499ae79bae19850773e655a37964802358f07df",
"version" : "0.1.2"
"revision" : "5653d61252af7f2dd8b43a77fb2a03678290f393",
"version" : "0.20.0"
}
},
{
Expand All @@ -54,15 +54,6 @@
"version" : "1.0.2"
}
},
{
"identity" : "swift-async-queue",
"kind" : "remoteSourceControl",
"location" : "https://github.com/dfed/swift-async-queue",
"state" : {
"revision" : "b51448d3347a3aedd828c491de3e78035f18759c",
"version" : "0.6.1"
}
},
{
"identity" : "swift-atomics",
"kind" : "remoteSourceControl",
Expand Down Expand Up @@ -107,6 +98,15 @@
"branch" : "main",
"revision" : "5a10e9b5220be4398eb7c1d4daa5f675868dd3ef"
}
},
{
"identity" : "swiftui-sliders",
"kind" : "remoteSourceControl",
"location" : "https://github.com/spacenation/swiftui-sliders.git",
"state" : {
"revision" : "d5a7d856655d5c91f891c2b69d982c30fd5c7bdf",
"version" : "2.1.0"
}
}
],
"version" : 2
Expand Down
9 changes: 6 additions & 3 deletions Sources/FlutterSwiftOCA/OcaChannelManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ Sendable {
await property.subscribe(object)

logger.trace(
"subscribed events for object \(object) property \(target.propertyID) current value \(property), \(refCount + 1) reference(s) remaining"
"subscribed events for object \(object) property \(target.propertyID) current value \(property), \(refCount + 1) reference(s) remaining, \(propertyEventChannel.tasksCount) outstanding tasks"
)

return property.eraseToFlutterEventStream(object: object, logger: logger)
Expand All @@ -433,11 +433,14 @@ Sendable {
}

try await object.unsubscribe()
logger.trace("unsubscribed events from object \(object), no references remaining")
logger
.trace(
"unsubscribed events from object \(object), no references remaining, \(propertyEventChannel.tasksCount) outstanding tasks"
)
} else {
logger
.trace(
"unsubscribed events from object ID \(target), \(refCount) reference(s) remaining"
"unsubscribed events from object ID \(target), \(refCount) reference(s) remaining, \(propertyEventChannel.tasksCount) outstanding tasks"
)
}
}
Expand Down

0 comments on commit 9b2900f

Please sign in to comment.