centiservice / mats3

Mats3: Message-based Asynchronous Transactional Staged Stateless Services
https://mats3.io/
Other
63 stars 7 forks source link

requestTailCall() - perform a request, but reply to the caller below on the stack #44

Closed stolsvik closed 2 years ago

stolsvik commented 3 years ago

If the lastStage is just returning whatever it got in, then it is useless. This could be optimzed away.

But this would probably be identical to goto(..), will it not? Like #21 and #22..

Should probably introduce a new "lastStage" to make this fly nicely, e.g. "tailStage"

Should probably change the "lastStage" to "returnStage" then... Or not, because you can return from any stage.