switchSession method

void switchSession(
  1. String newSessionId
)

Set the session ID (e.g., on resume or fork).

Implementation

void switchSession(String newSessionId) {
  _sessionId = newSessionId;
  _sessionFile = null;
  _pendingEntries.clear();
}