From 03584761b10658a756177ef4fc1a11531abf237b Mon Sep 17 00:00:00 2001 From: Avraham Sakal Date: Thu, 18 May 2023 08:38:36 -0400 Subject: [PATCH] remove incorrect comment in example --- src/tests/01-ping-pong.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/tests/01-ping-pong.ts b/src/tests/01-ping-pong.ts index 43d58c5..2a3e8a3 100644 --- a/src/tests/01-ping-pong.ts +++ b/src/tests/01-ping-pong.ts @@ -79,17 +79,7 @@ const server = SideEffect(logServerStats), SideEffect(sendResponse), Context((ctx)=>({...ctx, responsesSent: ctx.responsesSent+1})), - Goto('awaiting-request') // for some reason, at this point there's a "received-request" waiting in the eventQueue, which gets processed before the "exit" then "entry" that get appended to the queue due to this Goto, which makes the Interpreter come right back to this State - /* - Server gets timer-finished, which sends response to client. - - But client, at the time, is not transitioning, so it immediately begins - processing that event. The problem is that one of the sideeffects involved - in processing that event is to send another request to the server, - which hasn't yet even queued `exit`-then-`entry` events for its next state! - - So we have to ensure they get queued first, before processing the client. - */ + Goto('awaiting-request') ), ), );