DZone depends on you. Login and vote now.
By mswatcher
via thevalerios.net
Submitted: May 12 2008 / 21:17
Not too long ago I created a type-safe implementation of the ThreadPool.QueueUserWorkItem method that has proved quite useful to spawn off a long-running process to a new thread. This works great if you have a method that takes an input argument and doesn’t return anything. However, what if your long-running process needs to return a value or complete an action when it’s finished? The situation usually arises whenever you need to run a long process on another thread and update the UI when that process is done.
SaveShareSend
Tags: .net, frameworks
Add your comment