«« Next » « Previous
«« Next » « Previous

Link Details

DZone depends on you. Login and vote now.
Link 80670 thumbnail

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.
  • 2
  • 0
  • 6908
  • 12

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (2)



Voters Against This Link (0)