Waits until the execution of the fiber completes.
This method works like
Thread.join
If called from another fiber, the calling fiber
suspends and blocks until this fiber exits (and
the thread will be reused to execute other fibers.)
If called from outside conversations, the calling
method simply
Fiber.wait() waits .
throws: IllegalStateException - If a fiber tries to join itself. throws: InterruptedException - If this thread is interrupted while waiting. |