ReplSession.settled(): Promise<void>
Resolves once nothing is in flight — a no-op at the back of the evaluation queue.
What closing is awaited through. Lines pasted into a terminal arrive as one chunk and are read
as several, so a .exit at the end of a paste can otherwise reach the browser before the
evaluations above it have answered.