IAsyncResult BeginInvoke(Delegate method, object[] args) | Queues the method to run on the main thread at the next ProcessQueue, and returns at once. |
object EndInvoke(IAsyncResult result) | Blocks until a queued call has run on the main thread, then returns its result. |
object Invoke(Delegate method, object[] args) | Runs the method now if this is the main thread; otherwise queues it and waits for it to run there. |
void ProcessQueue() | Runs all queued calls and stores their results. Throws if not called from the creating thread. |