Waits for the listener to finish its pending work and terminate. You should call disconnect first to make it start to exit.
See Implementation
Waits for the listener to finish its pending work and terminate. You should call disconnect first to make it start to exit.