-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/packages
#8627Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectp: pigeonrelated to pigeon messaging codegen toolrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Description
Use case
Pigeon supports using swift for iOS/MacOS and objective-c for iOS. TaskQueue is supported for objective-c, but the @TaskQueue annotation from pigeon does not seem to have any impact when using swift & iOS. The following code will use TaskQueue when using objective-c, but not swift.
@HostApi()
abstract class MyAPI {
@async
@TaskQueue(type: TaskQueueType.serialBackgroundThread)
void doSomething();
}Proposal
Add support for TaskQueue when using swift on iOS. One consideration is that TaskQueue is not supported on MacOS. Users will either need to know this, and only attempt to use it for iOS plugins, or pigeon could use TaskQueue on iOS only (not sure of the feasibility of that).
Reference
@TaskQueue from pigeon: https://pub.dev/documentation/pigeon/latest/pigeon_lib/TaskQueue-class.html
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectp: pigeonrelated to pigeon messaging codegen toolrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team