Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8689881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:46:06+00:00 2026-06-12T23:46:06+00:00

There is a function like this: public MImage ImageHandler (parameter){ // do something }

  • 0

There is a function like this:

public MImage ImageHandler (parameter){
    // do something
}

This function will take some time depending on the parameter, now I want to monitor the execution of this function and do something after the function is done, like this:

//call this function
Task task = new task(ImageHandler(parameter));
task.begin();
task.done +=(()={ // do something after the function is done});

So How can I make it out?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:46:07+00:00Added an answer on June 12, 2026 at 11:46 pm

    You can run your code that takes some time to execute on a background thread using a BackgroundWorker

    See: How to use a BackgroundWorker

    The code that you want to run after the task has been complete can be placed in teh handler for the RunWorkerCompleted event.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a built-in function for this in Python 2.6? Something like: clamp(myValue, min,
I have a function that takes another function as a parameter. Something like this
Is there a function that can round a float in Fsharp? Something like round(3.21156,3)
Just a quick question about a function like this: class Test { public: Test(vector<int>&
I'm trying to do something like this: public void <String,int> getItem { return <Jen,23>;
Let's say I have a simple function like this: public static string randomthing(string var1)
I have a action script from a decompile flash like this public function getResourceAsByteArray(resID:int):flash.utils.ByteArray
i have a situation like this public function loginAction(){ //my other code if(!empty($errorMessage)){ $this->view->assign('error',$errorMessage);
E.g: I got a Java class with the main function implemented like this: public
I am querying an xml file with php like this : public function trackOrderAction()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.