Vocabulary
concurrency.exchangers

Inputs
objan object
exchangeran exchanger


Outputs
newobjan object


Word description
Waits for another thread to call exchange on the same exchanger. The thread's call to exchange returns with obj on the stack, and the object passed to exchange by the other thread is left on the current's thread stack as newobj.

Definition