Skip to content
Discussion options

You must be logged in to vote

I assumed that any workers would be cancelled on exiting the app? According to the docs for Worker lifetimes:

Workers are tied to the DOM node (widget, screen, or app) where they are created. This means that if you remove the widget or pop the screen where they are created, then the tasks will be cleaned up automatically. Similarly if you exit the app, any running tasks will be cancelled. [emphasis mine]

[EDIT: Sorry I've just spotted your example doesn't have the async keyword, so would actually create a thread worker. Just to double-check, is it specifically threaded code you are asking about?]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jehon
Comment options

Answer selected by jehon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants