Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Functions As Objects

rollynoel edited this page · 3 revisions
Clone this wiki locally

Added by Rodrigo B. de Oliveira

Functions and methods in boo are first class objects whose type exposes some very useful methods:

  • Invoke() as : invokes the function synchronously (pretty much the same as using () in front of the function name)
  • BeginInvoke( callback as AsyncCallback, asyncState) as IAsyncResult: invokes the function asynchronously and returns a handle that can be used to check the status of the execution as well as recovering the return value
  • BeginInvoke( callback as AsyncCallback) as IAsyncResult: the same as above without the asyncState parameter
  • EndInvoke(asyncResult as IAsyncResult) as : finishes an asynchronous invocation returning the final value

Invoke in action:


See Asynchronous Design Pattern for examples of BeginInvoke/EndInvoke in action.

Something went wrong with that request. Please try again.