Re: [Freecol-developers] Connection.request/askMessage

2022-05-01 Thread Michael T. Pope
On Sun, 1 May 2022 09:33:19 + Stian Grenborgen wrote: > I'm wondering why we are using Connection.request instead of just > Connection.sendMessage. Almost certainly its historic. When the DOM-removal was happening we went to really conservative messaging (e.g. overuse of askMessage), which

[Freecol-developers] Connection.request/askMessage

2022-05-01 Thread Stian Grenborgen
Hi, I'm wondering why we are using Connection.request instead of just Connection.sendMessage. The point of having Connection.askMessage is connecting the reply to the answer ... so that the calling thread can be blocked until the answer has been received. It's for making an asynchronous proces