You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am still in the testing fase of this plugin but I am starting to like it. Thank you for your work.
I do have a question related to the functionality of this plugin:
I want to now if I have to manualy close a StreamSubscription or not.
So if you have a code that looks like this:
CombineInfo isolateInfo = await Combine().spawn((context) {
print("Argument from main isolate: ${context.argument}");
context.messenger.messages.listen((message) {
print("Message from main isolate: $message");
context.messenger.send("Hello from isolate!");
});
}, argument: 42);
StreamSubscription<Object?> workerSubscription = isolateInfo.messenger.messages.listen((message) {
// your code to handle messages from isolate
});
Is it required to close the StreamSubscription or when calling the method isolateInfo.isolate.kill(); will also handle the closing of the StreamSubscriptions ?
The text was updated successfully, but these errors were encountered:
I am still in the testing fase of this plugin but I am starting to like it. Thank you for your work.
I do have a question related to the functionality of this plugin:
I want to now if I have to manualy close a StreamSubscription or not.
So if you have a code that looks like this:
Is it required to close the StreamSubscription or when calling the method
isolateInfo.isolate.kill();
will also handle the closing of the StreamSubscriptions ?The text was updated successfully, but these errors were encountered: