Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

How to stop ThreadPool.QueueUserWorkItem?

Hello everyone.

I'm using the function ThreadPool.QueueUserWorkItem to retrieve frames continuously from an external device and printing them on screen as they are ready to display. This runs on a function that contains an infinite loop. Obviously, this loop can't keep running once the activity is no longer being used, but I can't find the way to stop the worker thread once the activity is being abandoned.

Any suggestions?

Best Answer


Sign In or Register to comment.