Open topic with navigation

TIBCO Rendezvous® 8.8.0

# Dispatcher.Join

Method

## Visual Basic

    Public Sub Join()

## C#

    public void Join();

## Purpose

Wait for a dispatcher thread to finish.

## Remarks

The calling thread blocks until after the dispatcher thread is destroyed.

Consider a program in which the main thread creates a queue and listeners, and then creates a dispatcher for that queue. After that, the main thread is inactive. However, if the main thread exits, the scope for its queue and listeners evaporates (and those objects evaporate too) so the program can no longer operate correctly. To prevent this situation, the main thread calls this method, indicating a dependency between the two threads.

## See Also

Dispatcher

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Rendezvous®

Copyright © 1997-2025. Cloud Software Group, Inc. All Rights Reserved.