Results 1 to 6 of 6

Thread: What is Asynchronous Function?

  1. #1
    Join Date
    Dec 2009
    Posts
    38

    What is Asynchronous Function?

    Hi Friend,

    I need your help to know about the 'Asynchronous Functions'. Type type of unction is completely new for me. I don't have any idea about the use of 'Asynchronous Functions'. Is it inbuilt function? Please let me aware about the 'Asynchronous Functions'. Also give suitable example for 'Asynchronous Functions' and it's syntax as well. Your help would be greatly appreciated.

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    Re: What is Asynchronous Function?

    The function call is made synchronously, in which no other instruction is executed before the function returns a value. However, some functions take a long time, especially the operations of IO, And functions of communication network. Asynchronous functions is basically return data to the caller using event handler. The callback function can be invoked at any time. It is depends over how long asynchronous function takes to complete.

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Re: What is Asynchronous Function?

    See following information regarding the ' Asynchronous Function' :
    • A asynchronous method calling on thread pool standard perform the operation, then immediately returns to the calling method.
    • The arguments of the synchronous method are distributed between the two methods.
    • A asynchronous method that waits until the end of the operation before returning the result.

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: What is Asynchronous Function?

    The asynchronous function make use of two methods. The first begins Begin and requests the thread pool standard perform the operation. Once the transaction is complete, a delegate from the program is called. It then calls the method whose name starts with End to retrieve the value returned by the asynchronous method. Refer following syntax:
    Code:
    IAsyncResult nameOfBeginmethod ( arguments_non_ref ..., AsyncCallback callback, state of object )
    
    type_retour nameOfEndmethod (IAsyncResult, arguments_ref )

  5. #5
    Join Date
    Apr 2008
    Posts
    1,948

    Re: What is Asynchronous Function?

    Hi friend,

    I don't have sound knowledge about the 'Asynchronous Function', but you can refer following some properties of the 'Asynchronous Function':
    1. Object asyncState
    2. bool completedSynchronously
    3. WaitHandle AsyncWaitHandle
    4. bool IsCompleted

  6. #6
    Join Date
    May 2008
    Posts
    2,012

    Re: What is Asynchronous Function?

    The arguments of the asynchronous method are distributed among methods. Firstly The parameters passed by value are passed to the method Begin. And then The output parameters (out and ref) Are passed to the method End. The method Begin has two additional arguments:An object to be transmitted delegate, A delegate type AsyncCallback called when the operation is finished (it should then call the method End corresponding)

Similar Threads

  1. How to do Asynchronous Programming with Delegates?
    By AAeruJa in forum Software Development
    Replies: 5
    Last Post: 04-02-2011, 12:48 PM
  2. c# function equivalent to gettime function in javascript
    By Omaar in forum Software Development
    Replies: 4
    Last Post: 10-03-2010, 10:44 PM
  3. How does abstract function differs from virtual function?
    By Maddox G in forum Software Development
    Replies: 5
    Last Post: 29-01-2010, 11:32 AM
  4. Asynchronous Socket Error 10053 issue
    By wirelessprom in forum Networking & Security
    Replies: 3
    Last Post: 31-12-2009, 02:44 PM
  5. Asynchronous Transfer Mode (ATM) Networks - Guide
    By mindreader in forum Guides & Tutorials
    Replies: 11
    Last Post: 15-11-2006, 07:22 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,718,267,512.42966 seconds with 16 queries