coding advice for my  async/timer  function in

Posted on 2014-07-11
Last Modified: 2014-09-19
Hi experts,

I need advice on using an async function  or timer in the following situation (

a) the programm calls a function, which returns a result <long>
b) it gives the function n seconds to return the result, so it waits for the result.
c) if the result returns between 0 - n seconds its ok, proceed with the result
d) if the result does not returns return a message ....

Question by:aatjan
    LVL 39

    Accepted Solution

    I would async the function with a timeout and then handle the error.

    LVL 21

    Assisted Solution

    by:Randy Poole
    You may want to review this resource, it should help you with this.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
    Introduction When many people think of the WebBrowser ( control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now