Skip to content

Commit

Permalink
Add tasksCount to event channel for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoward committed Nov 24, 2024
1 parent 6085417 commit 1dc68d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/FlutterSwift/Channel/FlutterEventChannel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,9 @@ public final class FlutterEventChannel: _FlutterBinaryMessengerConnectionReprese
}
}
}

@_spi(FlutterSwiftPrivate)
public var tasksCount: Int {
tasks.withCriticalRegion { $0.count }
}
}

0 comments on commit 1dc68d4

Please sign in to comment.