Open brice-morin opened 5 years ago
Note that the @sync_send "true"
annotation on the internal port solves the problem... for the compilers supporting it (C compilers, Node.JS)... Is there any plan to support this annotation in all compilers (Java, Go)? And make that annotation a concept (like a modified on the port definition)?
(Mentionned in #202, but I feel it needs its own issue)
Let's say I have a client:
And a server:
Well... that works as expected. Now if the server looks like this:
This does not work anymore. Of course, we can refactor the whole protocol, so that server can notify when m1 has been processed, so as the client waits and then sends m2..... But this means we have to refactor the client just because of an implementation detail within the server. The client just want to send m1 and m2, and does not care whether the server uses internal ports or not...
This could be solved by allowing state A to defer message m2, so that it can be processed later on by state B.